mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
18 lines
480 B
Handlebars
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}}
|
|
};
|