import React from 'react' type DSSelectionGroupItemProps = { checked?: boolean disabled?: boolean onChange?: (value: ValueType) => void required?: boolean children: React.ReactNode } & ( | { type: 'radio' name: string value: ValueType } | { type: 'checkbox' name?: string value?: ValueType } ) export default function DSSelectionGroupItem( props: DSSelectionGroupItemProps ) { const handleChange = () => { props.onChange?.(props.value) } return (
  • ) }