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
882 B
TypeScript
36 lines
882 B
TypeScript
import { MintelBlock } from "./types";
|
|
import type { Block } from "payload";
|
|
|
|
export const TLDRBlock: MintelBlock = {
|
|
slug: "mintelTldr",
|
|
labels: {
|
|
singular: "TL;DR Block",
|
|
plural: "TL;DR Blocks",
|
|
},
|
|
admin: {
|
|
group: "MDX Components",
|
|
},
|
|
ai: {
|
|
name: "TLDR",
|
|
description:
|
|
"Presents a bite-sized summary of the article in a premium dark card. Use exactly once at the very beginning.",
|
|
usageExample:
|
|
"'<TLDR>\n Stabilität ist kein Zufall, sondern das Ergebnis einer Clean Code Strategie.\n</TLDR>'",
|
|
},
|
|
fields: [
|
|
{
|
|
name: "content",
|
|
type: "textarea",
|
|
required: true,
|
|
admin: {
|
|
description: "The summary content for the TLDR box.",
|
|
components: {
|
|
afterInput: [
|
|
"@mintel/payload-ai/components/AiFieldButton#AiFieldButton",
|
|
],
|
|
},
|
|
},
|
|
},
|
|
],
|
|
};
|