Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Failing after 1m24s
Build & Deploy / 🏗️ Build (push) Has been skipped
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s
36 lines
927 B
TypeScript
36 lines
927 B
TypeScript
import { MintelBlock } from "./types";
|
|
|
|
import type { Block } from "payload";
|
|
|
|
export const RevenueLossCalculatorBlock: MintelBlock = {
|
|
slug: "revenueLossCalculator",
|
|
labels: {
|
|
singular: "Revenue Loss Calculator",
|
|
plural: "Revenue Loss Calculators",
|
|
},
|
|
admin: {
|
|
group: "MDX Components",
|
|
},
|
|
ai: {
|
|
name: "RevenueLossCalculator",
|
|
description:
|
|
"Interactive calculator that estimates financial loss due to slow page load times. Use to build a business case for performance optimization.",
|
|
usageExample: "<RevenueLossCalculator />",
|
|
},
|
|
fields: [
|
|
{
|
|
name: "title",
|
|
type: "text",
|
|
defaultValue: "Performance Revenue Simulator",
|
|
admin: {
|
|
components: {
|
|
afterInput: [
|
|
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
|
],
|
|
},
|
|
description: "Geben Sie den Text für title ein.",
|
|
},
|
|
},
|
|
],
|
|
};
|