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

71 lines (70 loc) 3.06 kB
"use strict"; var __webpack_require__ = {}; (()=>{ __webpack_require__.d = (exports1, definition)=>{ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, { enumerable: true, get: definition[key] }); }; })(); (()=>{ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop); })(); (()=>{ __webpack_require__.r = (exports1)=>{ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, { value: 'Module' }); Object.defineProperty(exports1, '__esModule', { value: true }); }; })(); var __webpack_exports__ = {}; __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { default: ()=>inputs_NullField }); const jsx_runtime_namespaceObject = require("react/jsx-runtime"); const outline_namespaceObject = require("@heroicons/react/24/outline"); const I18nContext_js_namespaceObject = require("../../context/I18nContext.js"); const NullField = ({ schema })=>{ const { t } = (0, I18nContext_js_namespaceObject.useI18n)(); return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.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__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", { className: "flex", children: [ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", { className: "flex-shrink-0", children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(outline_namespaceObject.InformationCircleIcon, { className: "h-8 w-8", "aria-hidden": "true" }) }), /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", { className: "ml-3", children: [ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("h3", { className: "text-sm font-semibold", children: t(schema.title) }), !!schema.description && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", { className: "text-sm font-light", children: t(schema.description) }) ] }) ] }) }); }; const inputs_NullField = NullField; exports["default"] = __webpack_exports__["default"]; for(var __webpack_i__ in __webpack_exports__)if (-1 === [ "default" ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__]; Object.defineProperty(exports, '__esModule', { value: true });