Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
import { type NodeViewProps } from '@tiptap/core';
import { NodeViewWrapper } from '@tiptap/react';
import { FileBlock } from '@colanode/ui/components/files/file-block';
export const FileNodeView = ({ node }: NodeViewProps) => {
const id = node.attrs.id;
if (!id) {
return null;
}
return (
<NodeViewWrapper>
<FileBlock id={id} />
</NodeViewWrapper>
);
};