/**
 * amis-ui v6.14.0-beta.1
 * Copyright 2018-2025 fex
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var tslib = require('tslib');
var React = require('react');
var amisCore = require('amis-core');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

var __react_jsx__ = require('react');
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
(__react_jsx__["default"] || __react_jsx__).Fragment;
var NotFound = /** @class */ (function (_super) {
    tslib.__extends(NotFound, _super);
    function NotFound() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    NotFound.prototype.render = function () {
        var _a = this.props, links = _a.links, footerText = _a.footerText, description = _a.description, children = _a.children, code = _a.code;
        return (_J$X_("div", { className: "container w-xxl w-auto-xs m-auto" },
            _J$X_("div", { className: "text-center m-b-lg" },
                _J$X_("h1", { className: "text-shadow text-white" }, code || '404'),
                description ? (_J$X_("div", { className: "text-danger" }, description)) : null),
            children,
            links ? (_J$X_("div", { className: "list-group bg-info auto m-b-sm m-b-lg" }, links)) : null,
            footerText ? (_J$X_("div", { className: "text-center" },
                _J$X_("p", null,
                    _J$X_("small", { className: "text-muted" }, footerText)))) : null));
    };
    return NotFound;
}(React__default["default"].Component));
var _404 = amisCore.themeable(NotFound);

exports.NotFound = NotFound;
exports["default"] = _404;
