Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Failing after 2m24s
Build & Deploy / 🏗️ Build (push) Failing after 3m40s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 3s
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { MintelBlock } from "./types";
|
|
|
|
import type { Block } from "payload";
|
|
|
|
export const PerformanceROICalculatorBlock: MintelBlock = {
|
|
slug: "performanceROICalculator",
|
|
labels: {
|
|
singular: "Performance R O I Calculator",
|
|
plural: "Performance R O I Calculators",
|
|
},
|
|
admin: {
|
|
group: "MDX Components",
|
|
},
|
|
ai: {
|
|
name: "PerformanceROICalculator",
|
|
description:
|
|
"Interactive simulation calculator showing the monetary ROI of improving load times (based on Deloitte B2B metrics). Use exactly once in performance-related articles to provide a highly engaging simulation. Requires no props.",
|
|
usageExample: "'<PerformanceROICalculator />'",
|
|
},
|
|
fields: [
|
|
{
|
|
name: "baseConversionRate",
|
|
type: "number",
|
|
defaultValue: 2.5,
|
|
admin: {
|
|
description:
|
|
"Tragen Sie einen numerischen Wert für baseConversionRate ein.",
|
|
},
|
|
},
|
|
{
|
|
name: "monthlyVisitors",
|
|
type: "number",
|
|
defaultValue: 50000,
|
|
admin: {
|
|
description:
|
|
"Tragen Sie einen numerischen Wert für monthlyVisitors ein.",
|
|
},
|
|
},
|
|
],
|
|
};
|