import { TestimonialCard } from "poyraz-ui/molecules"; import { REFERENCES } from "@/data/references"; import { useLocale } from "next-intl"; import { getLocalizedValue } from "@/lib/locale"; type ReferenceCardsProps = { className?: string; cardClassName?: string; lineClamp?: boolean; }; export function ReferenceCards({ className, cardClassName, lineClamp }: ReferenceCardsProps) { const locale = useLocale(); return (
{REFERENCES.map((item) => { const card = ( *:last-child]:mt-auto ${ lineClamp ? "[&>*:first-child]:line-clamp-4" : "" } ${cardClassName || "w-70 shrink-0"}`} /> ); const href = item.documentHref || item.profileHref; if (!href) { return
{card}
; } return ( {card} ); })}
); }