import { ReactNode } from "react"; import { selectionType } from "./picker"; export type selectedOnChange = (target: selectionType) => void; export default function SelectionItem(props: {key: selectionType, children: ReactNode, onChange: selectedOnChange}){ return (
props.onChange(props.key)}> {props.children}
) }