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 ButtonProps extends AriaButtonOptions<'button'> { variant?: 'heavy' | 'light' className?: string children?: React.ReactNode } export default function Button({ variant = 'light', ...props }: ButtonProps) { const ref = useRef(null); const { buttonProps } = useButton(props, ref); return ( ) }