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

import { __extends } from 'tslib';
import React__default from 'react';
import { themeable } from 'amis-core';

/**
 * @file 404
 * @author fex
 */
var NotFound = /** @class */ (function (_super) {
    __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 (React__default.createElement("div", { className: "container w-xxl w-auto-xs m-auto" },
            React__default.createElement("div", { className: "text-center m-b-lg" },
                React__default.createElement("h1", { className: "text-shadow text-white" }, code || '404'),
                description ? (React__default.createElement("div", { className: "text-danger" }, description)) : null),
            children,
            links ? (React__default.createElement("div", { className: "list-group bg-info auto m-b-sm m-b-lg" }, links)) : null,
            footerText ? (React__default.createElement("div", { className: "text-center" },
                React__default.createElement("p", null,
                    React__default.createElement("small", { className: "text-muted" }, footerText)))) : null));
    };
    return NotFound;
}(React__default.Component));
var _404 = themeable(NotFound);

export { NotFound, _404 as default };
