import { ComponentProps, ReactNode } from "react"; import Stack from "../layout/Stack copy"; import Row from "../layout/Row"; import { Check, CheckCircle, CheckCircle2 } from "lucide-react"; import Span from "../layout/Span"; import { twMerge } from "tailwind-merge"; type BulletPoint = { title: string; icon?: ReactNode; }; export type TWUI_CHECK_BULLET_POINTS_PROPS = ComponentProps & { bulletPoints: BulletPoint[]; bulletWrapperProps?: ComponentProps; iconProps?: ComponentProps; titleProps?: ComponentProps; }; /** * # Check Bullet Points Component * @className_wrapper twui-check-bullet-points-wrapper */ export default function CheckBulletPoints({ bulletPoints, bulletWrapperProps, iconProps, titleProps, ...props }: TWUI_CHECK_BULLET_POINTS_PROPS) { return ( {bulletPoints.map((bulletPoint, index) => { return ( {bulletPoint.icon || ( )} {bulletPoint.title} ); })} ); }