import { Schema } from "@griddo/core";

const schema: Schema.Component = {
	schemaType: "component",
	component: "{{NAME}}",
	displayName: "{{DISPLAY_NAME}}",

	configTabs: [
		{
			title: "content",
			fields: [
				{
					type: "HeadingField",
					title: "Title",
					default: { content: "Lorem ipsum", tag: "h2" },
					key: "title",
					placeholder: "Type your title",
					advanced: true,
					helptext: "Write plain text and select the heading type",
					hideable: true,
					isMockup: false,
					mandatory: true,
					options: [
						{ label: "h1", value: "h1" },
						{ label: "h2", value: "h2" },
						{ label: "h3", value: "h3" },
					],
				},
			],
		},
	],

	default: {
		component: "{{NAME}}",
		title: { content: "Lorem ipsum", tag: "h2" },
	},
};

export default schema;
