import React from 'react'; import { ChevronUpDownIcon } from '@heroicons/react/20/solid'; import { CheckboxGroupButtons } from './CheckboxGroupButtons'; import { Orientation } from '../../Enums/Orientation'; interface IOrientationCheckboxesProps { id: string name: string labelText: string value: Orientation[] onChange: (key: string, value: number[]) => void } export function OrientationCheckboxes({ id, name, labelText, value, onChange }: IOrientationCheckboxesProps): JSX.Element { return ), value: Orientation.Horizontal }, { key: `${id}-vertical`, text: (
), value: Orientation.Vertical } ]} onChange={(newSelectedValues) => { onChange(id, newSelectedValues); }} />; }