2026-09-02 16:24:15 +01:00
|
|
|
import type { Block } from 'payload';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The house block: "what this number doesn't tell you".
|
|
|
|
|
*
|
|
|
|
|
* Blocks are the reason this site runs a CMS rather than flat files — a post
|
|
|
|
|
* can carry live product components, not screenshots of them. This is the
|
|
|
|
|
* first and simplest one; a live-chart block follows when a post needs it.
|
|
|
|
|
*/
|
|
|
|
|
export const Callout: Block = {
|
|
|
|
|
slug: 'callout',
|
|
|
|
|
labels: { singular: 'Callout', plural: 'Callouts' },
|
|
|
|
|
fields: [
|
|
|
|
|
{
|
|
|
|
|
name: 'tone',
|
|
|
|
|
type: 'select',
|
|
|
|
|
defaultValue: 'caveat',
|
|
|
|
|
options: [
|
2026-09-02 17:14:20 +01:00
|
|
|
{ label: 'Caveat: what this does not show', value: 'caveat' },
|
|
|
|
|
{ label: 'Note: useful aside', value: 'note' },
|
2026-09-02 16:24:15 +01:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{ name: 'body', type: 'textarea', required: true },
|
|
|
|
|
],
|
|
|
|
|
};
|