diff --git a/packages/frontend-design-poc/src/components/FilterBar/AddFilterButton/AddFilterButton.tsx b/packages/frontend-design-poc/src/components/FilterBar/AddFilterButton/AddFilterButton.tsx new file mode 100644 index 00000000..72e4860f --- /dev/null +++ b/packages/frontend-design-poc/src/components/FilterBar/AddFilterButton/AddFilterButton.tsx @@ -0,0 +1,55 @@ +import { Button } from '@digdir/designsystemet-react'; +import { PlusIcon } from '@navikt/aksel-icons'; +import { useTranslation } from 'react-i18next'; +import { Filter, FilterBarField } from '../FilterBar.tsx'; +import { FilterList, FilterListItem } from '../FilterList'; + +import styles from './addFilterButton.module.css'; + +type AddFilterButtonProps = { + filterOptions: FilterBarField[]; + filters: Filter[]; + onListItemClick: (option: FilterBarField) => void; + onBtnClick: () => void; + isOpen: boolean; + disabled?: boolean; +}; +export const AddFilterButton = ({ + filterOptions, + onListItemClick, + disabled, + filters, + onBtnClick, + isOpen, +}: AddFilterButtonProps) => { + const { t } = useTranslation(); + return ( +