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; statementCount: number | null; summary: string | null; themes?: string[]; }; } export function SpaceCard({ space }: SpaceCardProps) { return (
{getIcon(space?.icon, 16)}
{space.autoMode && (
Auto
)}
{space.name} {space.description || space.summary || "Knowledge space"}
{space.statementCount && space.statementCount > 0 && (
{space.statementCount} fact {space.statementCount !== 1 ? "s" : ""}
)}
); }