import { create } from "@bufbuild/protobuf"; import { timestampDate } from "@bufbuild/protobuf/wkt"; import { isEqual } from "lodash-es"; import { CheckCircleIcon, Code2Icon, HashIcon, LinkIcon } from "lucide-react"; import { cn } from "@/lib/utils"; import { Memo, Memo_PropertySchema, MemoRelation_Type } from "@/types/proto/api/v1/memo_service_pb"; import { useTranslate } from "@/utils/i18n"; import MemoRelationForceGraph from "../MemoRelationForceGraph"; interface Props { memo: Memo; className?: string; parentPage?: string; } const SectionLabel = ({ children }: { children: React.ReactNode }) => (

{children}

); const MemoDetailSidebar = ({ memo, className, parentPage }: Props) => { const t = useTranslate(); const property = create(Memo_PropertySchema, memo.property || {}); const hasSpecialProperty = property.hasLink || property.hasTaskList || property.hasCode; const hasReferenceRelations = memo.relations.some((r) => r.type === MemoRelation_Type.REFERENCE); return ( ); }; export default MemoDetailSidebar;