mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-28 14:16:41 +07:00
refactored lab
This commit is contained in:
parent
d0e99adc9f
commit
b551fc44ea
41 changed files with 80 additions and 79 deletions
|
@ -0,0 +1,26 @@
|
|||
import { FC } from 'react';
|
||||
|
||||
import { NodeAudioImageBlock } from '~/components/node/NodeAudioImageBlock';
|
||||
import { NODE_TYPES, NodeComponentProps } from '~/constants/node';
|
||||
|
||||
import { LabAudio } from '../components/LabAudioBlock';
|
||||
import { LabDescription } from '../components/LabDescription';
|
||||
import { LabImage } from '../components/LabImage';
|
||||
import { LabNodeTitle } from '../components/LabNodeTitle';
|
||||
import { LabPad } from '../components/LabPad';
|
||||
import { LabText } from '../components/LabText';
|
||||
import { LabVideo } from '../components/LabVideo';
|
||||
|
||||
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]: [
|
||||
LabPad,
|
||||
LabNodeTitle,
|
||||
LabPad,
|
||||
NodeAudioImageBlock,
|
||||
LabAudio,
|
||||
LabPad,
|
||||
],
|
||||
[NODE_TYPES.TEXT]: [LabPad, LabNodeTitle, LabPad, LabText, LabPad],
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue