import { ChevronRight } from 'lucide-react' import { useTheme } from 'next-themes' import Link from 'next/link' import { useParams } from 'common' import { useSendEventMutation } from 'data/telemetry/send-event-mutation' import { useSelectedOrganizationQuery } from 'hooks/misc/useSelectedOrganization' import { BASE_PATH } from 'lib/constants' interface ExampleProjectProps { framework: string title: string description: string url: string } const ExampleProject = ({ framework, title, description, url }: ExampleProjectProps) => { const { resolvedTheme } = useTheme() const { ref: projectRef } = useParams() const { data: org } = useSelectedOrganizationQuery() const { mutate: sendEvent } = useSendEventMutation() return ( sendEvent({ action: 'example_project_card_clicked', properties: { cardTitle: title }, groups: { project: projectRef ?? 'Unknown', organization: org?.slug ?? 'Unknown' }, }) } >
{`${framework}
{title}

{description}

) } export default ExampleProject