import { Type, createBlock } from "camox/createBlock"; const statistics = createBlock({ id: "statistics", title: "Statistics", description: "Showcase key metrics, achievements, or performance indicators. Ideal for displaying platform statistics or company milestones.", content: { title: Type.String({ default: "By the numbers", maxLength: 30, title: "Title", }), subtitle: Type.String({ default: "Trusted by teams worldwide", title: "Subtitle", }), description: Type.String({ default: "Our platform empowers teams to build and ship faster. Here are some numbers we're proud of.", title: "Description", }), statistics: Type.Repeater({ content: { number: Type.String({ default: "100+", maxLength: 7, title: "Number", }), label: Type.String({ default: "projects launched", title: "Label", }), }, minItems: 3, maxItems: 8, title: "Statistics", toMarkdown: (c) => [`**${c.number}** — ${c.label}`], }), }, component: StatisticsComponent, toMarkdown: (c) => [`## ${c.subtitle}`, c.description, c.statistics], }); function StatisticsComponent() { return (
{(props) => (
)} {(props) => (

)} {(props) => (

)}

{(stat) => (
{(props) => (
)} {(props) => (

)}

)}
); } export { statistics as block };