import { Component, For } from "solid-js"; import { A } from "@solidjs/router"; import { SearchImageStore, useSearchImageContext, } from "@contexts/SearchImageContext"; // TODO: lots of stuff to do with Entities, this could be seperated into a centralized place. const CategoryColor: Record< keyof ReturnType, string > = { contact: "bg-orange-50", location: "bg-red-50", event: "bg-purple-50", note: "bg-green-50", }; export const Categories: Component = () => { const { categories } = useSearchImageContext(); return (
{([category, group]) => (

{category}s

{group.length}

)}
); };