-
{
- setOpenSelect(!openSelect);
- }}
- className="flex w-full items-center justify-between rounded border border-black/30 px-4 py-2 text-sm dark:border-white/30"
- >
-
{active}
-
-
- {openSelect && (
-
{
- setOpenSelect(false);
- }}
- className="absolute z-40 w-full rounded-b-md bg-white p-4 shadow-md dark:bg-black"
- >
- {list.map((item: ListItem, i) => (
-
- ))}
-
- )}
-
- );
-}
diff --git a/components/layout/search/filter/index.tsx b/components/layout/search/filter/index.tsx
deleted file mode 100644
index 11a7cd367..000000000
--- a/components/layout/search/filter/index.tsx
+++ /dev/null
@@ -1,41 +0,0 @@
-import { SortFilterItem } from 'lib/constants';
-import { Suspense } from 'react';
-import FilterItemDropdown from './dropdown';
-import { FilterItem } from './item';
-
-export type ListItem = SortFilterItem | PathFilterItem;
-export type PathFilterItem = { title: string; path: string };
-
-function FilterItemList({ list }: { list: ListItem[] }) {
- return (
- <>
- {list.map((item: ListItem, i) => (
-