import { AnimatePresence, motion } from 'framer-motion' import { type ComponentProps, type ReactNode } from 'react' import { cn } from 'ui' import { Admonition } from 'ui-patterns' /** * @deprecated Use Admonition from ui-patterns instead * Pass actions as a prop to the Admonition component */ interface NoticeBarProps extends Omit, 'description'> { title?: string description?: string icon?: ReactNode visible: boolean actions?: ReactNode } export function NoticeBar({ visible, description, actions, ...props }: NoticeBarProps) { return ( {visible && ( {description}
{actions &&
{actions}
}
)}
) }