@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
14 lines • 922 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { useMediaDevice } from '../../hooks/useMediaDevice/useMediaDevice';
import { useStyles } from '../../hooks/useStyles/useStyles';
import { ErrorBoundary } from '../../provider/errorBoundary/errorBoundary';
import { FallbackComponent } from '../../provider/errorBoundary/fallbackComponent';
import { LayoutStandAlone } from './layoutStandAlone';
const LAYOUT_STYLES = 'LAYOUT_STYLES';
export const LayoutComponent = ({ variant, ctv, ...props }) => {
const styles = useStyles(LAYOUT_STYLES, variant, ctv);
const device = useMediaDevice();
return _jsx(LayoutStandAlone, { styles: styles, ...props, device: device });
};
export const Layout = (props) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(LayoutStandAlone, { ...props }) }), children: _jsx(LayoutComponent, { ...props }) }));
//# sourceMappingURL=layout.js.map