import { AnimatePresence, motion } from 'framer-motion' import { LucideIcon } from 'lucide-react' import { ComponentProps } from 'react' import { Admonition } from 'ui-patterns' interface NoticeBarProps extends Omit, 'description'> { title?: string description?: string icon?: LucideIcon visible: boolean actions?: React.ReactNode } export function NoticeBar({ visible, description, actions, ...props }: NoticeBarProps) { return ( {visible && ( {description}
{actions &&
{actions}
}
)}
) }