import type { FullToken, GenerateStyle, GetDefaultToken } from '../../theme/internal'; import { genComponentStyleHook } from '../../theme/internal'; export type ComponentToken = {}; interface AppToken extends FullToken<'App'> {} // =============================== Base =============================== const genBaseStyle: GenerateStyle = (token) => { const { componentCls, colorText, fontSize, lineHeight, fontFamily } = token; return { [componentCls]: { color: colorText, fontSize, lineHeight, fontFamily, }, }; }; export const prepareComponentToken: GetDefaultToken<'App'> = () => ({}); // ============================== Export ============================== export default genComponentStyleHook<'App'>('App', genBaseStyle, prepareComponentToken);