download
raw
440 Bytes
export interface ThemeWithProps {
components?: any;
}
export type ThemedProps<Theme, Name extends keyof any> = Theme extends {
components: Record<Name, { defaultProps: infer Props }>;
}
? Props
: {};
export default function useThemeProps<
Theme extends ThemeWithProps,
Props,
Name extends keyof any,
>(params: {
props: Props;
name: Name;
defaultTheme?: Theme;
themeId?: string;
}): Props & ThemedProps<Theme, Name>;

Xet Storage Details

Size:
440 Bytes
·
Xet hash:
ef6ce3ffb396da5baecdd1a162c60d3156dd2d58389881532d020098dc9ccf6c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.