import type { Doc } from "../convex/_generated/dataModel" export const profileCardClasses = "border border-slate-800 rounded-lg p-6 bg-slate-900/50 flex flex-col gap-4" interface ProfilePillsProps { version: string flashCount?: number flashLabel?: string } export function ProfileStatisticPills({ version, flashCount, flashLabel }: ProfilePillsProps) { const normalizedCount = flashCount ?? 0 const normalizedLabel = flashLabel ?? (normalizedCount === 1 ? "flash" : "flashes") return (
{version} {normalizedCount} {normalizedLabel}
) } interface ProfileCardContentProps { profile: Doc<"profiles"> } export function ProfileCardContent({ profile }: ProfileCardContentProps) { const flashCount = profile.flashCount ?? 0 return ( <>

{profile.name}

{profile.description}

) }