@coko/client
Version:
Client side common code for coko apps
26 lines (23 loc) • 525 B
JavaScript
import "react";
import e, { css as t } from "styled-components";
import { jsx as n } from "react/jsx-runtime";
//#region src/ui/common/Page.tsx
var r = e.div`
height: 100%;
${(e) => !!e.$maxWidth && t`
display: flex;
justify-content: center;
> div {
max-width: ${e.$maxWidth}px;
}
`}
`, i = (e) => {
let { className: t, children: i, maxWidth: a = null } = e;
return /* @__PURE__ */ n(r, {
$maxWidth: a,
className: t,
children: i
});
};
//#endregion
export { i as default };