import { type Dispatch, type SetStateAction } from 'react' import { Button as AriaButton } from 'react-aria-components' import { cn } from '~/utils/cn' type ButtonProperties = Parameters[0] & { readonly control?: [boolean, Dispatch>] readonly variant?: 'heavy' | 'light' } export default function Button(properties: ButtonProperties) { return ( { properties.control?.[1](true) } : properties.onPress} /> ) }