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

33 lines
718 B
JavaScript
Raw Normal View History

2020-10-27 08:13:42 +00:00
import React, { forwardRef, useEffect, Component, useState } from "react"
2020-10-22 17:09:44 +00:00
import styled from "styled-components";
import { Scrollbar } from "asc-web-components";
import { isMobile } from "react-device-detect";
2020-10-27 08:13:42 +00:00
import { scrolledTheVerticalAxis } from "../../utils";
2020-10-22 17:09:44 +00:00
const StyledContainer = styled.div`
width:100%;
height:100vh;
2020-10-22 17:09:44 +00:00
`
2020-10-27 08:13:42 +00:00
const Layout = (({children}) => {
return(
<StyledContainer className="Layout">
{isMobile
? <Scrollbar stype="mediumBlack">
{/* { console.log("(IN APP REF", scrollRefPage)} */}
{children}
</Scrollbar>
2020-10-22 17:09:44 +00:00
2020-10-27 08:13:42 +00:00
: children
}
</StyledContainer>)
})
2020-10-22 17:09:44 +00:00
export default Layout;