import { IconSearch } from "@/components/ui/icons"; import { cn } from "@/lib/cn"; import { openCommandPalette } from "@/stores/command-palette"; import { useAuth } from "@/stores/auth-context"; import { useT } from "@/stores/preferences-context"; /** The home page's search field: the one visible door into the command * palette now that the topbar no longer carries it (Ctrl/Cmd K still works). */ export function CommandSearchField(props: { class?: string }) { const t = useT(); const auth = useAuth(); const placeholder = () => auth.user()?.role === "admin" ? t("dashboard.hero.searchPlaceholderAdmin") : t("dashboard.hero.searchPlaceholderAll"); return ( ); }