feat(housekeeping): add global command deck search

This commit is contained in:
simoleo89
2026-08-30 15:59:48 +02:00
parent 2e95a106e0
commit bcb0ca977f
18 changed files with 1353 additions and 23 deletions
@@ -1,15 +1,18 @@
import type { HousekeepingSurface } from "../contracts";
import { CommandDeck, type CommandDeckLabels } from "./command-deck";
interface CommandTriggerProps {
label: string;
labels: Omit<CommandDeckLabels, "trigger">;
surface: HousekeepingSurface;
}
export function CommandTrigger({ label }: CommandTriggerProps) {
export function CommandTrigger({
label,
labels,
surface,
}: CommandTriggerProps) {
return (
<button
type="button"
disabled
className="rounded-md border border-[var(--admin-border)] bg-[var(--admin-surface)] px-3 py-2 text-sm text-[var(--admin-text-muted)]"
>
{label}
</button>
<CommandDeck labels={{ trigger: label, ...labels }} surface={surface} />
);
}