feat: add theme property to Icon and Prompt types

This commit is contained in:
Vijay Daswani 2025-12-12 01:25:30 +04:00
commit 1e1b9e3619
2 changed files with 7 additions and 1 deletions

View file

@ -3,6 +3,7 @@ interface Icon {
src: string; src: string;
mimeType?: string; mimeType?: string;
sizes?: string[]; sizes?: string[];
theme?: "light" | "dark";
} }
// Helper type for objects that may have icons // Helper type for objects that may have icons

View file

@ -24,7 +24,12 @@ export type Prompt = {
description?: string; description?: string;
required?: boolean; required?: boolean;
}[]; }[];
icons?: { src: string; mimeType?: string; sizes?: string[] }[]; icons?: {
src: string;
mimeType?: string;
sizes?: string[];
theme?: "light" | "dark";
}[];
}; };
const PromptsTab = ({ const PromptsTab = ({