import React from 'react';
import Sidebar from '../sidebar/Sidebar';

const DocumentsLayout = ({ sidebarProps, children, sidebarCollapsed }) => (
  <main className={`documents-main${sidebarCollapsed ? ' documents-main--sidebar-collapsed' : ''}`}>
    {!sidebarCollapsed ? <Sidebar {...sidebarProps} /> : null}
    {children}
  </main>
);

export default DocumentsLayout;
