feat(housekeeping): add global command deck search
This commit is contained in:
@@ -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} />
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user