import { Row } from './layout/row' import clsx from 'clsx' export function ChoicesToggleGroup(props: { currentChoice: number | string setChoice: (p: any) => void //number | string does not work here because of SetStateAction in .tsx choices: number[] | string[] titles: string[] isSubmitting?: boolean }) { const { currentChoice, setChoice, titles, choices, isSubmitting } = props const baseButtonClassName = 'btn btn-outline btn-md sm:btn-md normal-case' const activeClasss = 'bg-indigo-600 focus:bg-indigo-600 hover:bg-indigo-600 text-white' return (
{choices.map((choice, i) => { return ( ) })}
) }