import { Link } from "react-router-dom"; import { getRkey } from "../utils.ts"; import { Sparkline } from "./Sparkline.tsx"; type SliceNode = { uri: string; name: string; domain: string; createdAt: string; actorHandle?: string | null; networkSlicesActorProfile?: { avatar?: { url: string; } | null; } | null; appBskyActorProfile?: { avatar?: { url: string; } | null; } | null; sparklines?: any; }; interface SliceListProps { slices: SliceNode[]; showSparklines?: boolean; } export function SliceList({ slices, showSparklines = false }: SliceListProps) { return (
{slice.domain}
{new Date(slice.createdAt).toLocaleDateString()}