diff --git a/components/Block/Directory.vue b/components/Block/Directory.vue index 5352c9d..5a450c8 100644 --- a/components/Block/Directory.vue +++ b/components/Block/Directory.vue @@ -76,12 +76,19 @@ const dirConfig = computed(() => { }); // Search Capability -const { searchQuery, selectedFacets, facets, filteredItems, clearFilters } = useDirectory({ +const { searchQuery, selectedFacets, facets, filteredItems, isFilterActive, clearFilters } = useDirectory({ items: cards.value ?? [], searchFields: unref(dirConfig)?.searchFields ?? [], facetFields: unref(dirConfig)?.facetFields ?? [], fieldMapping: unref(dirConfig)?.fieldMapping ?? undefined, }); + +// Mobile filter state +const isFilterOpen = ref(false); + +const toggleFilter = () => { + isFilterOpen.value = !isFilterOpen.value; +};