You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
// 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 {};
|
|
|
|
},
|
|
|
|
);
|