import { MintelBlock } from "./types"; import type { Block } from "payload"; export const YouTubeEmbedBlock: MintelBlock = { slug: "youTubeEmbed", labels: { singular: "You Tube Embed", plural: "You Tube Embeds", }, admin: { group: "MDX Components", }, ai: { name: "YouTubeEmbed", description: "Embeds a YouTube video to visualize concepts or provide deep dives. Use the 11-character videoId.", usageExample: '\'\'', }, fields: [ { name: "videoId", type: "text", required: true, admin: { description: "Geben Sie den Text für videoId ein." }, }, { name: "title", type: "text", admin: { components: { afterInput: [ "@mintel/payload-ai/components/AiFieldButton#AiFieldButton", ], }, description: "Geben Sie den Text für title ein.", }, }, ], };