onecart-ui
Version:
Cross-platform React and React Native component library with white-label support
14 lines • 440 B
TypeScript
import React, { ReactNode } from "react";
import { Theme } from "./index";
interface ThemeContextValue {
theme: Theme;
updateTheme: (newTheme: Partial<Theme>) => void;
}
interface ThemeProviderProps {
children: ReactNode;
theme?: Partial<Theme>;
}
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
export declare const useTheme: () => ThemeContextValue;
export {};
//# sourceMappingURL=ThemeProvider.d.ts.map