"use client"; import type { ReactNode } from "react"; import { Skeleton } from "@/components/ui/skeleton"; import { CopyableId } from "@/components/shared/copyable-id"; import { Dialog, DialogContent, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import { formatScope } from "@/lib/memory"; import { formatDateTime } from "@/lib/format-datetime"; import { useMemoryUnit } from "@/hooks/use-memory-unit"; import { useI18n } from "@/i18n/i18n-context"; import type { MemoryScope, MemoryUnit } from "@/types/memory"; import { getMemoryUnitId } from "./memory-unit-table"; interface DetailRowProps { label: string; children: ReactNode; } /** * Two-column detail row: fixed-width label on the left, flexible value on the * right. Keeps vertical rhythm consistent across the detail panel. */ function DetailRow({ label, children }: DetailRowProps) { return (