import { MintelBlock } from "./types"; import type { Block } from "payload"; export const WaterfallChartBlock: MintelBlock = { slug: "waterfallChart", labels: { singular: "Waterfall Chart", plural: "Waterfall Charts", }, admin: { group: "MDX Components", }, fields: [ { name: "title", type: "text", admin: { components: { afterInput: [ "@mintel/payload-ai/components/AiFieldButton#AiFieldButton", ], }, description: "Geben Sie den Text für title ein.", }, }, { name: "metrics", type: "array", fields: [ { name: "label", type: "text", required: true, admin: { components: { afterInput: [ "@mintel/payload-ai/components/AiFieldButton#AiFieldButton", ], }, description: "Geben Sie den Text für label ein.", }, }, { name: "duration", type: "number", required: true, admin: { description: "Tragen Sie einen numerischen Wert für duration ein.", }, }, { name: "color", type: "text", admin: { components: { Field: "@/src/payload/components/ColorPicker" }, description: "Geben Sie den Text für color ein.", }, }, ], admin: { description: "Fügen Sie Elemente zur Liste metrics hinzu." }, }, ], };