mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 16:05:47 +01:00
22 lines
542 B
TypeScript
22 lines
542 B
TypeScript
|
|
import { ActionIcon, Button, Group, Text } from '@mantine/core';
|
||
|
|
import { IconArrowNarrowLeft } from '@tabler/icons';
|
||
|
|
|
||
|
|
interface SelectorBackArrowProps {
|
||
|
|
onClickBack: () => void;
|
||
|
|
}
|
||
|
|
|
||
|
|
export const SelectorBackArrow = ({ title, onClickBack }: SelectorBackArrowProps) => {
|
||
|
|
return (
|
||
|
|
<Button
|
||
|
|
leftIcon={<IconArrowNarrowLeft />}
|
||
|
|
onClick={onClickBack}
|
||
|
|
styles={{ inner: { width: 'fit-content' } }}
|
||
|
|
fullWidth
|
||
|
|
variant='default'
|
||
|
|
mb="md"
|
||
|
|
>
|
||
|
|
<Text>See all available elements</Text>
|
||
|
|
</Button>
|
||
|
|
);
|
||
|
|
};
|