import { motion } from "motion/react"; import Button from "@/components/ui/Button"; import TextAnimation from "@/components/ui/TextAnimation"; import ImageOrVideo from "@/components/ui/ImageOrVideo"; type HeroSplitMediaGridProps = { tag: string; title: string; description: string; primaryButton: { text: string; href: string }; secondaryButton: { text: string; href: string }; items: [ { imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }, { imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never } ]; }; const HeroSplitMediaGrid = ({ tag, title, description, primaryButton, secondaryButton, items, }: HeroSplitMediaGridProps) => { return (
{tag}
{items.map((item, index) => (
))}
); }; export default HeroSplitMediaGrid;