@greensight/gds
Version:
Greensight Design System
9 lines (8 loc) • 444 B
TypeScript
import { ComponentsTheme, Theme } from '../../types/emotion/Theme';
/**
* Custom hook returns used component and project themes based on custom theme exist check. Use it for all components defined in `ComponentsTheme`.
*/
export declare const useComponentTheme: (name: keyof ComponentsTheme, __theme?: ComponentsTheme[keyof ComponentsTheme]) => {
componentTheme: import("../../types/emotion/Button").ButtonTheme;
usedTheme: Theme;
};