openpanel/packages/cli/templates/resource/components/create.tsx.hbs
Stefan Pejcic 09f9f9502d packages
2024-11-07 19:03:37 +01:00

18 lines
480 B
Handlebars

{{#if isNextJs}}
"use client";
{{/if}}
{{#if uiFramework}}
import { {{formatInferencerComponent uiFramework}}Inferencer } from "@refinedev/inferencer/{{uiFramework}}";
{{else}}
import { HeadlessInferencer } from "@refinedev/inferencer/headless";
{{/if}}
export const {{getComponentNameByResource resource}}Create = () => {
{{#if uiFramework}}
return <{{formatInferencerComponent uiFramework}}Inferencer />;
{{else}}
return <HeadlessInferencer />;
{{/if}}
};