import React from 'react'; import { UnstyledButton, Group, Avatar, Text, createStyles, } from '@mantine/core'; import { BiChevronRight } from 'react-icons/bi'; const useStyles = createStyles((theme) => ({ user: { display: 'block', width: '100%', padding: theme.spacing.md, color: theme.colorScheme === 'dark' ? theme.colors.dark[0] : theme.black, '&:hover': { backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[8] : theme.colors.gray[0], }, }, })); export function UserButton(props) { const { image, name, email, icon, ...others } = props const { classes } = useStyles(); return (
{name} {email}
{icon || }
); }