import { TinaMarkdown, TinaMarkdownContent } from "tinacms/dist/rich-text"; import { RichTextTemplate } from "@tinacms/schema-tools"; export interface BlockQuoteProps { children: TinaMarkdownContent; authorName: string; } const BlockQuote = (props: BlockQuoteProps) => (
{ props.authorName }
); export const blockQuoteSchema: RichTextTemplate = { name: "BlockQuote", label: "Block Quote", fields: [ { name: "children", label: "Quote", type: "rich-text" }, { name: "authorName", label: "Author", type: "string" } ] }; export default BlockQuote;