import React from "react"; import classNames from "classnames"; import { FilterButtonProps } from "./FilterableTypes"; import { SelectMultiple } from "../../../select"; import { useConfig } from "../../../_util/config-context"; export function MultipleFilterButton({ all, className, style, children, options, value, ...selectProps }: FilterButtonProps) { const { classPrefix } = useConfig(); const active = Boolean(value && value.length > 0); return ( ({ ...option, text: option.text || option.label, }))} allOption={all ? { ...all, text: all.text || all.label } : false} value={value} /> ); }