Files
Homarr/src/components/Dashboard/Modals/SelectElement/Components/Shared/SelectorBackArrow.tsx

20 lines
480 B
TypeScript
Raw Normal View History

2022-12-10 15:45:15 +01:00
import { Button, Text } from '@mantine/core';
2022-12-04 21:19:40 +01:00
import { IconArrowNarrowLeft } from '@tabler/icons';
interface SelectorBackArrowProps {
onClickBack: () => void;
}
2022-12-10 15:45:15 +01:00
export const SelectorBackArrow = ({ onClickBack }: SelectorBackArrowProps) => (
2022-12-17 00:28:46 +09:00
<Button
leftIcon={<IconArrowNarrowLeft />}
onClick={onClickBack}
styles={{ inner: { width: 'fit-content' } }}
fullWidth
variant="default"
mb="md"
>
<Text>See all available elements</Text>
</Button>
);