import './ContentSectionHeader.scss'; import { useContext } from 'react'; import { openFiltersPanel } from '@/components/FiltersPanel/filters-panel-handlers'; import { Button } from '@/components/shared/Button/Button'; import { Dropdown } from '@/components/shared/Dropdown/Dropdown'; import { Search } from '@/components/shared/Search/Search'; import { SORT_OPTIONS, SortValues } from '@/shared/notebooks.service'; import { NotebooksContext } from '@/shared/notebooks-context'; const sparkClassNames = { fontTitleXs: 'spark-font-200', }; type ContentSectionHeaderProps = { totalCount: number; filteredCount: number; }; export const ContentSectionHeader = ({ totalCount, filteredCount }: ContentSectionHeaderProps): JSX.Element => { const { searchValue, setSearchValue, resetFilters, sort, setSort } = useContext(NotebooksContext); const isFiltered = filteredCount !== totalCount; return (