import { Avatar, Box, Flex, FlexProps, HStack, useMenuButton } from '@chakra-ui/react' import {HiSelector} from '@react-icons/all-files/hi/HiSelector' import * as React from 'react' export interface AccountSwitcherButtonProps extends FlexProps { name: string imageSrc: string iconRight?: React.ReactNode } export const AccountSwitcherButton: React.FC = ({ iconRight, imageSrc, ...props }) => { const buttonProps = useMenuButton(props) return ( {props.name} {iconRight && {iconRight}} ) }