Template
25 lines
622 B
TypeScript
25 lines
622 B
TypeScript
import type { RootConfig } from '@reacteditor/core';
|
|
|
|
export type RootProps = {
|
|
title?: string;
|
|
description?: string;
|
|
ogImage?: string;
|
|
};
|
|
|
|
export const Root: RootConfig<{ props: RootProps }> = {
|
|
global: false,
|
|
defaultProps: {
|
|
title: 'Your Company',
|
|
description: 'A clean, flexible foundation for your next website.',
|
|
ogImage: '',
|
|
},
|
|
fields: {
|
|
title: { label: 'Page title', type: 'text' },
|
|
description: { label: 'Meta description', type: 'textarea' },
|
|
ogImage: { label: 'Social share image', type: 'image' },
|
|
},
|
|
render: ({ children }) => <>{children}</>,
|
|
};
|
|
|
|
export default Root;
|