Merge pull request #968 from Vijaydaswani/fix/icon-theme-property

feat: add theme property to Icon and Prompt types
This commit is contained in:
Ola Hungerford 2025-12-11 20:42:53 -07:00 • committed by GitHub
commit bce61b2d34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

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

View file

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