strapi-plugin-preview-button
Version:
A plugin for Strapi CMS that adds a preview button and live view button to the content manager edit view.
48 lines (47 loc) • 1.79 kB
JavaScript
"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const index = require("./index-CSWOFhNV.js");
const designSystem = require("@strapi/design-system");
const reactIntl = require("react-intl");
const reactRouterDom = require("react-router-dom");
const NoContentType = () => {
const { formatMessage } = reactIntl.useIntl();
return /* @__PURE__ */ jsxRuntime.jsxs(index.Page.Main, { children: [
/* @__PURE__ */ jsxRuntime.jsx(
index.Layouts.Header,
{
title: formatMessage({
id: index.getTranslation("header.name"),
defaultMessage: "Content"
})
}
),
/* @__PURE__ */ jsxRuntime.jsx(index.Layouts.Content, { children: /* @__PURE__ */ jsxRuntime.jsx(
designSystem.EmptyStateLayout,
{
action: /* @__PURE__ */ jsxRuntime.jsx(
designSystem.LinkButton,
{
tag: reactRouterDom.NavLink,
variant: "secondary",
startIcon: /* @__PURE__ */ jsxRuntime.jsx(index.ForwardRef$1d, {}),
to: "/plugins/content-type-builder/content-types/create-content-type",
children: formatMessage({
id: "app.components.HomePage.create",
defaultMessage: "Create your first Content-type"
})
}
),
content: formatMessage({
id: "content-manager.pages.NoContentType.text",
defaultMessage: "You don't have any content yet, we recommend you to create your first Content-Type."
}),
hasRadius: true,
icon: /* @__PURE__ */ jsxRuntime.jsx(index.ForwardRef$J, { width: "16rem" }),
shadow: "tableShadow"
}
) })
] });
};
exports.NoContentType = NoContentType;