@ducor/react
Version:
admin template ui interface
8 lines (7 loc) • 662 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { twMerge } from "tailwind-merge";
const Page = ({ title, children }) => {
document.title = title;
return (_jsx("div", { "data-du": 'main', children: _jsxs("div", { className: twMerge("overscroll-auto focus:overscroll-contain"), children: [_jsx("header", { className: 'bg-white shadow', children: _jsx("div", { className: 'mx-auto px-4 py-6 sm:px-6 lg:px-8', children: _jsx("h1", { className: 'text-3xl font-bold tracking-tight text-gray-900', children: title }) }) }), _jsx("div", { className: 'mx-auto py-6 sm:px-6 lg:px-8 ', children: children })] }) }));
};
export default Page;