"use client" import type { DocumentsWithMemoriesResponseSchema } from "@repo/validation/api" import type { z } from "zod" import { dmSansClassName } from "@/lib/fonts" import { cn } from "@lib/utils" import { DocumentIcon, getDocumentTypeLabel, } from "@/components/new/document-icon" type DocumentsResponse = z.infer type DocumentWithMemories = DocumentsResponse["documents"][0] export function GoogleDocsPreview({ document, }: { document: DocumentWithMemories }) { const label = getDocumentTypeLabel(document.type) return (

{label}

{document.summary ? (

{document.summary}

) : document.content ? (

{document.content}

) : (

No summary available

)}
) }