Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function MultiSelect(props: IMultiSelectProps) {
const [internalVal, setInternalVal] = useControllableValue(props)
const setInternalValPersist = usePersistFn(setInternalVal)
const {
items,
filterFn,
selectedValueTransKey,
columnTitle,
placeholder,
value, // only to exclude from restProps
onChange, // only to exclude from restProps
...restProps
} = props
const { t } = useTranslation()
const columns: IColumn[] = useMemo(
() => [