import _ from 'lodash'; import { Select } from '@@/form-components/ReactSelect'; import { EdgeGroup } from '../edge-groups/types'; type SingleValue = EdgeGroup['Id']; interface Props { items: EdgeGroup[]; value: SingleValue[]; onChange: (value: SingleValue[]) => void; } export function EdgeGroupsSelector({ items, value, onChange }: Props) { const valueGroups = _.compact( value.map((id) => items.find((item) => item.Id === id)) ); return (