import { motion } from "motion/react"; import Button from "@/components/ui/Button"; import TextAnimation from "@/components/ui/TextAnimation"; import ImageOrVideo from "@/components/ui/ImageOrVideo"; type AboutMediaOverlayProps = { tag: string; title: string; description: string; primaryButton?: { text: string; href: string }; secondaryButton?: { text: string; href: string }; } & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); const AboutMediaOverlay = ({ tag, title, description, primaryButton, secondaryButton, imageSrc, videoSrc, }: AboutMediaOverlayProps) => { return (
{tag} {(primaryButton || secondaryButton) && (
{primaryButton &&
)}
); }; export default AboutMediaOverlay;