UNPKG

@ai-growth/nextjs

Version:

Seamlessly integrate Sanity CMS with Next.js applications for automated blog routing and rendering

15 lines (14 loc) 705 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PostTemplate = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const SimpleDefaultTemplate_1 = require("./SimpleDefaultTemplate"); /** * Post Template - optimized for blog posts and articles */ const PostTemplate = (props) => { // Use the default template with post-specific defaults return ((0, jsx_runtime_1.jsx)(SimpleDefaultTemplate_1.SimpleDefaultTemplate, { ...props, showMetadata: props.showMetadata ?? true, showAuthor: props.showAuthor ?? true, className: `post-template ${props.className || ''}`.trim() })); }; exports.PostTemplate = PostTemplate; exports.default = exports.PostTemplate;