util.d.ts 622 B

1234567
  1. import type * as React from 'react';
  2. import type { CSSMotionProps } from 'rc-motion';
  3. import type { NotificationConfig, NotificationPlacement } from './interface';
  4. import type { NotificationConfig as CPNotificationConfig } from '../config-provider/context';
  5. export declare function getPlacementStyle(placement: NotificationPlacement, top: number, bottom: number): React.CSSProperties;
  6. export declare function getMotion(prefixCls: string): CSSMotionProps;
  7. export declare function getCloseIconConfig(closeIcon: React.ReactNode, notificationConfig?: NotificationConfig, notification?: CPNotificationConfig): React.ReactNode;