import { RelationshipList } from "@/components/RelationshipList"; import { DocumentEditForm } from "@/components/documents/DocumentEditForm"; import { useDocument } from "@/context/document/DocumentContext"; import { displayName, relationshipsForDocument } from "@/lib/relationships"; import { Tab, TabGroup, TabList, TabPanel, TabPanels } from "@headlessui/react"; import { Link } from "@tanstack/react-router"; import { Loader } from "../Loader"; export function DocumentView() { const { state } = useDocument(); if (state.status === "loading") { return ; } const doc = state.doc; const relationshipList = relationshipsForDocument(doc); return (
Print {relationshipList.map((relationshipType) => ( {displayName(relationshipType)} ))} {relationshipList.map((relationshipType) => ( ))}
); }