import { Type, createBlock } from "camox/createBlock"; import { Link } from "camox/navigation"; const footer = createBlock({ id: "footer", title: "Footer", layoutOnly: true, description: "A footer at the bottom of a page with a site name and navigation links.", content: { title: Type.String({ default: "{{projectName}}" }), links: Type.Repeater({ content: { link: Type.Link({ default: { text: "Footer link", href: "#", newTab: false }, title: "Link", }), }, minItems: 2, maxItems: 12, title: "Links", toMarkdown: (c) => [c.link], }), }, component: FooterComponent, toMarkdown: (c) => [c.title, c.links], }); function FooterComponent() { return ( ); } export { footer as block };