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.61 kB
JavaScript
import { jsxs, jsx } from "react/jsx-runtime";
import { b as Page, L as Layouts, B as getTranslation, al as ForwardRef$1d, cO as ForwardRef$J } from "./index-DX9HaYlZ.mjs";
import { EmptyStateLayout, LinkButton } from "@strapi/design-system";
import { useIntl } from "react-intl";
import { NavLink } from "react-router-dom";
const NoContentType = () => {
const { formatMessage } = useIntl();
return /* @__PURE__ */ jsxs(Page.Main, { children: [
/* @__PURE__ */ jsx(
Layouts.Header,
{
title: formatMessage({
id: getTranslation("header.name"),
defaultMessage: "Content"
})
}
),
/* @__PURE__ */ jsx(Layouts.Content, { children: /* @__PURE__ */ jsx(
EmptyStateLayout,
{
action: /* @__PURE__ */ jsx(
LinkButton,
{
tag: NavLink,
variant: "secondary",
startIcon: /* @__PURE__ */ jsx(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__ */ jsx(ForwardRef$J, { width: "16rem" }),
shadow: "tableShadow"
}
) })
] });
};
export {
NoContentType
};