1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

displaying node videos

This commit is contained in:
Fedor Katurov 2019-10-19 20:06:48 +07:00
parent f7c2f0e90f
commit 6917c465f3
4 changed files with 52 additions and 0 deletions

View file

@ -2,6 +2,7 @@ import { FC } from 'react';
import { INode, ValueOf, IComment } from '../types';
import { NodeImageSlideBlock } from '~/components/node/NodeImageSlideBlock';
import { NodeTextBlock } from '~/components/node/NodeTextBlock';
import { NodeVideoBlock } from '~/components/node/NodeVideoBlock';
import { ImageEditor } from '~/components/editors/ImageEditor';
import { TextEditor } from '~/components/editors/TextEditor';
import { VideoEditor } from '~/components/editors/VideoEditor';
@ -66,6 +67,7 @@ type INodeComponents = Record<
export const NODE_COMPONENTS: INodeComponents = {
[NODE_TYPES.IMAGE]: NodeImageSlideBlock,
[NODE_TYPES.VIDEO]: NodeVideoBlock,
};
export const NODE_INLINES: INodeComponents = {