Files
myeasycms-v2/packages/cms/keystatic/src/custom-components.tsx
gbuomprisco 015df51cf9 Add type annotations and import missing dependencies
Added type annotations to CustomMarkdocTags to ensure type safety. Also, included missing imports for Schema and block, improving the integrity of the file.
2024-08-22 10:32:17 +02:00

36 lines
839 B
TypeScript

import type { Schema } from '@markdoc/markdoc';
/**
* @name CustomMarkdocComponents
* @description Custom components for Markdoc. Please define your custom components here.
* @example
*
* ```ts
* function Youtube(props: { src: string }) { ... }
*
* export const CustomMarkdocComponents: Record<string, React.ComponentType<never>> = {
* Youtube,
* };
*/
export const CustomMarkdocComponents: Record<
string,
React.ComponentType<never>
> = {
// define your custom components here
};
/**
* @name CustomMarkdocTags
* @description Custom tags for Markdoc. Please define your custom tags here.
* @example
* export const CustomMarkdocTags = {
* youtube: {
* render: "Youtube",
* selfClosing: true,
* }
* }
*/
export const CustomMarkdocTags: Record<string, Schema> = {
// define your custom tags here
};