import { forwardRef, useMemo } from 'react' export const icons = [ 'add', 'delete', 'edit', 'emoji', 'send', 'settings', 'more', 'download' ] as const export type Icon = typeof icons[number] interface IconButtonProps extends React.ComponentPropsWithRef<'button'> { icon: Icon hasBackground?: boolean size?: number } export const IconButton = forwardRef( (props, ref) => { const { icon, hasBackground = false, size = 60, ...rest } = props const imageSize = useMemo(() => { return size / 2.6 }, [size]) return ( <> ) } )