Adding some translations

This commit is contained in:
ajnart
2023-01-02 01:11:25 +09:00
parent f23c317ef1
commit be979dc534
10 changed files with 56 additions and 74 deletions

View File

@@ -1,19 +1,23 @@
import { Button, Text } from '@mantine/core';
import { IconArrowNarrowLeft } from '@tabler/icons';
import { useTranslation } from 'next-i18next';
interface SelectorBackArrowProps {
onClickBack: () => void;
}
export const SelectorBackArrow = ({ onClickBack }: SelectorBackArrowProps) => (
<Button
leftIcon={<IconArrowNarrowLeft />}
onClick={onClickBack}
styles={{ inner: { width: 'fit-content' } }}
fullWidth
variant="default"
mb="md"
>
<Text>See all available elements</Text>
</Button>
);
export function SelectorBackArrow({ onClickBack }: SelectorBackArrowProps) {
const { t } = useTranslation('layout/element-selector/selector');
return (
<Button
leftIcon={<IconArrowNarrowLeft />}
onClick={onClickBack}
styles={{ inner: { width: 'fit-content' } }}
fullWidth
variant="default"
mb="md"
>
<Text>{t('goBack')}</Text>
</Button>
);
}