import { Show } from "solid-js";
import { FilterType } from "./Structs/FilterType";
let FilterMenu = () => {
let selectionButtons: HTMLDivElement[] = [];
let select = ( index: number ) => {
selectionButtons.forEach(e => e.classList.remove('selected-filter'));
selectionButtons[index].classList.add('selected-filter');
}
return (
<>
Your photos aren't indexed due to the large number, filters may take a while to load.
selectionButtons.push(el)} onClick={() => {
select(0);
window.PhotoManager.SetFilterType(FilterType.USER);
}}>User
selectionButtons.push(el)} onClick={() => {
select(1);
window.PhotoManager.SetFilterType(FilterType.WORLD);
}}>World
window.PhotoManager.SetFilter(el.target.value)} placeholder="Enter Search Term...">
>
)
}
export default FilterMenu
export { FilterType }