mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-07 14:13:58 -05:00
Fix broken types in imported library
This commit is contained in:
18
lib/types/ThemeTypes.ts
Normal file
18
lib/types/ThemeTypes.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
export type Theme = "dark" | "light" | "system";
|
||||
|
||||
export interface ThemeProviderProps {
|
||||
defaultTheme?: Theme;
|
||||
storageKey?: string;
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export interface ThemeProviderState {
|
||||
theme: Theme;
|
||||
setTheme: (theme: Theme) => void;
|
||||
}
|
||||
|
||||
export interface ThemeProviderProps {
|
||||
children: React.ReactNode;
|
||||
defaultTheme?: Theme;
|
||||
storageKey?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user