import type { Dispatch, SetStateAction } from 'react'; import React, { useRef } from 'react'; import { useButton, type AriaButtonOptions } from 'react-aria'; import { cn } from '~/utils/cn'; export interface IconButtonProps extends AriaButtonOptions<'button'> { variant?: 'heavy' | 'light' className?: string children: React.ReactNode label: string } export default function IconButton({ variant = 'light', ...props }: IconButtonProps) { const ref = useRef(null); const { buttonProps } = useButton(props, ref); return ( ) }