19 lines
432 B
TypeScript
19 lines
432 B
TypeScript
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,
|
|
labels,
|
|
surface,
|
|
}: CommandTriggerProps) {
|
|
return (
|
|
<CommandDeck labels={{ trigger: label, ...labels }} surface={surface} />
|
|
);
|
|
}
|