memos/web/src/components/MemoMetadata/Relation/RelationCard.tsx
memoclaw 4177898054
refactor(web): consolidate memo metadata components into MemoMetadata (#5755)
Co-authored-by: memoclaw <265580040+memoclaw@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-21 09:04:15 +08:00

16 lines
529 B
TypeScript

import MemoSnippetLink from "@/components/MemoView/components/MemoSnippetLink";
import type { MemoRelation_Memo } from "@/types/proto/api/v1/memo_service_pb";
interface RelationCardProps {
memo: MemoRelation_Memo;
parentPage?: string;
className?: string;
}
const RelationCard = ({ memo, parentPage, className }: RelationCardProps) => {
return (
<MemoSnippetLink name={memo.name} snippet={memo.snippet} to={`/${memo.name}`} state={{ from: parentPage }} className={className} />
);
};
export default RelationCard;