import { ChevronRight } from 'lucide-react' import { useTheme } from 'next-themes' import Link from 'next/link' import { cn } from 'ui' import { BASE_PATH } from '@/lib/constants' import { useTrack } from '@/lib/telemetry/track' interface ExampleProjectProps { title: string description: string url: string framework?: string iconUrl?: string } export const ExampleProject = ({ framework, title, description, url, iconUrl, }: ExampleProjectProps) => { const { resolvedTheme } = useTheme() const track = useTrack() const iconImgSrc = iconUrl ? iconUrl : !!framework ? `${BASE_PATH}/img/libraries/${framework.toLowerCase()}${ ['expo', 'nextjs'].includes(framework.toLowerCase()) ? resolvedTheme?.includes('dark') ? '-dark' : '' : '' }-icon.svg` : '' return ( track('example_project_card_clicked', { cardTitle: title })} >
{`${framework}
{title}

{description}

) }