import clsx from 'clsx'; import type { FunctionComponent } from 'react'; import React from 'react'; import type { MessageProps } from '../Message'; import Message from '../Message'; import { ANIMATION_DURATION } from './AnimationAlertUtils'; type AnimationMessageProps = { animation?: string; duration?: number; } & MessageProps; export const AnimationMessage: FunctionComponent = ({ animation, duration, ...props }) => { // @ts-expect-error TS(2532): Object is possibly 'undefined'. const second = duration / 1000; return (
); }; AnimationMessage.defaultProps = { animation: undefined, duration: ANIMATION_DURATION, };