import React from 'react' import './index.scss' interface Props { groupName: string name: string selected: boolean tabIndex?: number children: string onClick: (event: React.ChangeEvent) => void } const Segment: React.FC = (props: Props) => { // Selects the segment when the user presses the spacebar const handleKeyDown = (event: React.KeyboardEvent) => { if (event.key === ' ') { event.preventDefault() event.currentTarget.click() } } return (
) } export default Segment