export const FilteringDropdown = (props) => {
const [isShown, setIsShown] = createSignal(false)
return (
<div class="relative">
<button class="border-0 bg-transparent cursor-pointer m-0 p-2 whitespace-nowrap" onClick={() => setIsShown(!isShown())}>
<span class={`px-2 h-[24px] w-[24px] ${props.icon}`}></span>
{props.title}
<span class="h-[24px] w-[24px] i-material-symbols-keyboard-arrow-down"></span>
</button>
{isShown() && <div class="absolute top-10 left-0 w-lg bg-white border-1">FILTERS!</div>}
</div>
)
}
export const FilteringDropdown = (props) => {
const [isShown, setIsShown] = createSignal(false)
return (
<div class="relative">
<button class="border-0 bg-transparent cursor-pointer m-0 p-2 whitespace-nowrap" onClick={() => setIsShown(!isShown())}>
<span class={`px-2 h-[24px] w-[24px] ${props.icon}`}></span>
{props.title}
<span class="h-[24px] w-[24px] i-material-symbols-keyboard-arrow-down"></span>
</button>
{isShown() && <div class="absolute top-10 left-0 w-lg bg-white border-1">FILTERS!</div>}
</div>
)
}