import { ExclamationCircleIcon } from "@heroicons/react/20/solid"; import { AnimatePresence, motion } from "framer-motion"; import tileBgPath from "~/assets/images/error-banner-tile@2x.png"; import { Icon } from "~/components/primitives/Icon"; import { Paragraph } from "~/components/primitives/Paragraph"; import { cn } from "~/utils/cn"; type AnimatedOrgBannerBarProps = { show: boolean; variant: "warning" | "error"; children: React.ReactNode; action?: React.ReactNode; }; export function AnimatedOrgBannerBar({ show, variant, children, action, }: AnimatedOrgBannerBarProps) { return ( {show ? (
{children}
{action}
) : null}
); }