UNPKG

@premieroctet/next-admin

Version:

Next-Admin provides a customizable and turnkey admin dashboard for applications built with Next.js and powered by the Prisma ORM. It aims to simplify the development process by providing a turnkey admin system that can be easily integrated into your proje

37 lines (36 loc) 1.56 kB
import { jsx, jsxs } from "react/jsx-runtime"; import { InformationCircleIcon } from "@heroicons/react/24/outline"; import { useI18n } from "../../context/I18nContext.mjs"; const NullField = ({ schema })=>{ const { t } = useI18n(); return /*#__PURE__*/ jsx("div", { className: "bg-nextadmin-alert-info-background dark:bg-dark-nextadmin-alert-info-background text-nextadmin-alert-info-content dark:text-dark-nextadmin-alert-info-content w-full rounded-md p-4", children: /*#__PURE__*/ jsxs("div", { className: "flex", children: [ /*#__PURE__*/ jsx("div", { className: "flex-shrink-0", children: /*#__PURE__*/ jsx(InformationCircleIcon, { className: "h-8 w-8", "aria-hidden": "true" }) }), /*#__PURE__*/ jsxs("div", { className: "ml-3", children: [ /*#__PURE__*/ jsx("h3", { className: "text-sm font-semibold", children: t(schema.title) }), !!schema.description && /*#__PURE__*/ jsx("p", { className: "text-sm font-light", children: t(schema.description) }) ] }) ] }) }); }; const inputs_NullField = NullField; export { inputs_NullField as default };