Files
twenty/packages/twenty-website-new/src/lib/i18n/LocalizedLinkButton.tsx
T
Abdullah. d2cfbf319b [Website] Implement translations. (#20171)
As title.

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-04 10:41:46 +00:00

45 lines
945 B
TypeScript

'use client';
import {
BaseButton,
type BaseButtonProps,
buttonBaseStyles,
} from '@/design-system/components/Button/BaseButton';
import type { LinkButtonType } from '@/design-system/components/Button/types/LinkButtonType';
import { styled } from '@linaria/react';
import { LocalizedLink } from './LocalizedLink';
const StyledButtonLink = styled(LocalizedLink)`
${buttonBaseStyles}
`;
export type LocalizedLinkButtonProps = Omit<BaseButtonProps, 'label'> &
LinkButtonType;
export function LocalizedLinkButton({
color,
href,
label,
leadingIcon,
size = 'regular',
variant,
}: LocalizedLinkButtonProps) {
return (
<StyledButtonLink
data-color={color}
data-size={size}
data-variant={variant}
href={href}
>
<BaseButton
color={color}
label={label}
leadingIcon={leadingIcon}
size={size}
variant={variant}
/>
</StyledButtonLink>
);
}