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