@cmk/fe_utils
Version:
frontend utility library
16 lines (14 loc) • 499 B
text/typescript
import { mdiImageOutline } from '@mdi/js'
import { imagePropsSchema } from './imagePropsRawSchema'
import { ImageWrapper, ImageWrapperProps } from './ImageWrapper'
import { ElementModel } from '../../componentDefType'
import { FC } from 'react'
export const imageEditorComponentDef = {
type: 'Image' as const,
props: {
},
icon: mdiImageOutline,
category: 'basic',
component: ImageWrapper as FC<ImageWrapperProps>,
schema: imagePropsSchema,
} satisfies ElementModel<ImageWrapperProps>