Filter
Component for filtering products
Code
import CategoryFilter from "../CategoryFilter/CategoryFilter"
import CheckboxFilter from "../CheckBoxFilter/CheckBoxFilter"
import { categoriesTreeMock, filterOptionsMock } from "../../mock/filtersMock"
const Filter = () => {
return (
<div className="w-[200px]">
<CategoryFilter categoryTree={categoriesTreeMock} />
{filterOptionsMock.map((filterOption) => (
<CheckboxFilter name={filterOption.name} options={filterOption.options} key={filterOption.code} code={filterOption.code} />
))}
</div>
)
}
export default Filter