ant-design/components/notification/style/index.tsx
二货机器人 178d8d6f19
chore: Patch Notification tmpl (#35568)
* chore: init notification style

* chore: comment style

* chore: clean up recv deps

* chore: trigger
2022-05-16 18:02:46 +08:00

29 lines
819 B
TypeScript

// deps-lint-skip-all
import { genComponentStyleHook } from '../../_util/theme';
import type { FullToken, GenerateStyle } from '../../_util/theme';
/** Component only token. Which will handle additional calculation of alias token */
export interface ComponentToken {}
export interface NotificationToken extends FullToken<'Notification'> {}
// =============================== Base ===============================
const genBaseStyle: GenerateStyle<NotificationToken> = token => {
const { componentCls } = token;
return {
[componentCls]: {},
};
};
// ============================== Export ==============================
export default genComponentStyleHook(
'Notification',
token => [genBaseStyle(token)],
token => {
// Not error in lint tmp
console.log('>>', !!token);
return {};
},
);