Co-authored-by: memoclaw <265580040+memoclaw@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
16 lines
529 B
TypeScript
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;
|