import { Link } from "@remix-run/react"; import { Card, CardDescription, CardHeader, CardTitle, } from "~/components/ui/card"; import { Badge } from "../ui/badge"; import { getIcon } from "../icon-picker"; interface SpaceCardProps { space: { id: string; name: string; icon?: string; description: string | null; createdAt: string; updatedAt: string; autoMode: boolean; summary: string | null; contextCount?: number | null; themes?: string[]; }; } export function SpaceCard({ space }: SpaceCardProps) { return (
{getIcon(space?.icon, 16)}
{space.autoMode && (
Auto
)}
{space.name}

{space.contextCount && space.contextCount > 0 && (
{space.contextCount} episode {space.contextCount !== 1 ? "s" : ""}
)}
); }