@ducor/react
Version:
admin template ui interface
8 lines (7 loc) • 697 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import Button from "./button";
var EmptyPage = function (_a) {
var _b = _a.message, message = _b === void 0 ? "Page not found!" : _b, _c = _a.actionLabel, actionLabel = _c === void 0 ? "Go Back" : _c, onActionClick = _a.onActionClick;
return (_jsxs("div", { className: 'flex flex-col items-center justify-center h-full bg-gray-50 p-6', children: [_jsx("h1", { className: 'text-3xl font-bold text-gray-800 mb-2', children: "404" }), _jsx("p", { className: 'text-gray-600 text-lg mb-6', children: message }), _jsx(Button, { variant: 'danger', onClick: onActionClick, children: actionLabel })] }));
};
export default EmptyPage;