"use strict";
/**
 * Content Template
 *
 * Generates {Module}Content.tsx component for displaying BlockNote content.
 * Only generated for Content-extending modules.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateContentTemplate = generateContentTemplate;
/**
 * Generate the content display component file content
 *
 * @param data - Frontend template data
 * @returns Generated file content or null if not Content-extending
 */
function generateContentTemplate(data) {
    const { names, extendsContent } = data;
    // Only generate for Content-extending modules
    if (!extendsContent) {
        return null;
    }
    return `"use client";

import { use${names.pascalCase}Context } from "@/features/${data.targetDir}/${names.kebabCase}/contexts/${names.pascalCase}Context";
import { BlockNoteEditorContainer } from "@carlonicora/nextjs-jsonapi/components";
import { Card } from "@carlonicora/nextjs-jsonapi/components";

export default function ${names.pascalCase}Content() {
  const { ${names.camelCase} } = use${names.pascalCase}Context();

  return (
    <Card className="flex w-full flex-col p-4">
      <BlockNoteEditorContainer id={${names.camelCase}.id} type="${names.camelCase}" initialContent={${names.camelCase}.content} />
    </Card>
  );
}
`;
}
//# sourceMappingURL=content.template.js.map