admin progress

This commit is contained in:
yohlo
2025-08-26 21:50:56 -05:00
parent 7226fb33f4
commit fcdb33a4b6
6 changed files with 106 additions and 2 deletions

View File

@@ -0,0 +1,30 @@
import { Divider, Group, Text, UnstyledButton } from "@mantine/core";
import { CaretRightIcon, Icon } from "@phosphor-icons/react";
interface ListButtonProps {
label: string;
Icon: Icon;
handleClick: () => void;
}
const ListButton = ({ label, handleClick, Icon }: ListButtonProps) => {
return (
<>
<UnstyledButton
w='100%'
p='md'
component={'button'}
onClick={handleClick}
>
<Group>
<Icon weight='bold' size={20} />
<Text fw={500} size='md'>{label}</Text>
<CaretRightIcon style={{ marginLeft: 'auto' }} size={20} />
</Group>
</UnstyledButton>
<Divider />
</>
)
}
export default ListButton;