import { usePage } from '@websolutespa/bom-mixer-hooks'; import { forwardRef } from 'react'; import styled from 'styled-components'; import { UIComponentWithRef, UIStyledComponentProps } from '../../components/types'; import { getCssResponsive } from '../../components/utils'; type Props = { }; export type LayoutProps = UIStyledComponentProps; export type LayoutComponent = UIComponentWithRef; const StyledLayout = styled.div` ${props => getCssResponsive(props)} `; export const Layout: LayoutComponent = forwardRef(({ children, as = 'div', ...props }, ref) => { const page = usePage(); return ( {children} ); }); Layout.displayName = 'Layout';