import React from 'react' import { cn } from '@/lib/utils' import type { FC } from 'react' type Props = { children: React.ReactNode checkBox?: { label: string checked: boolean onChange: (event: React.ChangeEvent) => void } invalid?: boolean } const Label: FC = ({ children, checkBox, invalid }: Props) => { const labelClassName = cn ('block font-semibold mb-1', invalid && 'text-red-700 dark:text-red-300') if (!(checkBox)) { return ( ) } return (
) } export default Label