Files
homarr/src/components/Dashboard/Modals/SelectElement/Components/Shared/SelectorBackArrow.tsx
2022-12-17 00:28:46 +09:00

20 lines
480 B
TypeScript

import { Button, Text } from '@mantine/core';
import { IconArrowNarrowLeft } from '@tabler/icons';
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>
);