import { Fragment } from "react"; import { motion } from "motion/react"; import Button from "@/components/ui/Button"; import TextAnimation from "@/components/ui/TextAnimation"; type FeatureItem = { label: string; title: string; bullets: string[]; primaryButton: { text: string; href: string }; secondaryButton: { text: string; href: string }; }; interface FeaturesLabeledListProps { tag: string; title: string; description: string; primaryButton?: { text: string; href: string }; secondaryButton?: { text: string; href: string }; items: FeatureItem[]; } const FeaturesLabeledList = ({ tag, title, description, primaryButton, secondaryButton, items, }: FeaturesLabeledListProps) => { return (
{tag} {(primaryButton || secondaryButton) && (
{primaryButton &&
)}
{items.map((item) => (

{item.label}

{item.title}

{item.bullets.map((text, index) => ( {text} {index < item.bullets.length - 1 && } ))}
))}
); }; export default FeaturesLabeledList;