DocSpace-buildtools/web/ASC.Web.Common/src/components/Layout/index.js

25 lines
468 B
JavaScript
Raw Normal View History

2020-10-22 17:09:44 +00:00
import React from "react"
import styled from "styled-components";
import { Scrollbar } from "asc-web-components";
import { isMobile } from "react-device-detect";
2020-10-22 17:09:44 +00:00
const StyledContainer = styled.div`
width:100%;
height:100vh;
2020-10-22 17:09:44 +00:00
`
const Layout = ({children}) => (
<StyledContainer>
{isMobile
? <Scrollbar stype="mediumBlack">
2020-10-22 17:09:44 +00:00
{children}
</Scrollbar>
: {children}
}
2020-10-22 17:09:44 +00:00
</StyledContainer>
)
export default Layout;