import AppBar from '../elements/Appbar/Appbar'
import BasicFooter from '../elements/Footer/BasicFooter'
import AnimationLayout from './AnimationLayout'

const AppLayout = ({ children, title, withFooter = true }) => {
  return (
    <>
      <AnimationLayout>
        <AppBar title={title} />
        {children}
      </AnimationLayout>
      {withFooter && <BasicFooter />}
    </>
  )
}

export default AppLayout
