1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

rename NodeComponentProps

This commit is contained in:
Fedor Katurov 2023-11-04 10:48:57 +06:00
parent 8553f91429
commit 65196bbbbb
15 changed files with 59 additions and 45 deletions

View file

@ -53,17 +53,17 @@ export const NODE_TYPES = {
ROOM: 'room',
};
export type INodeComponentProps = {
export type NodeComponentProps = {
node: INode;
isLoading: boolean;
};
export type INodeComponents = Record<
ValueOf<typeof NODE_TYPES>,
FC<INodeComponentProps>
FC<NodeComponentProps>
>;
export const LAB_PREVIEW_LAYOUT: Record<string, FC<INodeComponentProps>[]> = {
export const LAB_PREVIEW_LAYOUT: Record<string, FC<NodeComponentProps>[]> = {
[NODE_TYPES.IMAGE]: [LabImage, LabPad, LabNodeTitle, LabDescription],
[NODE_TYPES.VIDEO]: [LabVideo, LabPad, LabNodeTitle, LabDescription],
[NODE_TYPES.AUDIO]: [