File size: 810 Bytes
db5855f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { ContentSection } from '@components/ContentSection/ContentSection';
import { FiltersPanel } from '@components/FiltersPanel/FiltersPanel';
import { Header } from '@components/Header/Header';

import { isEmbedded } from '@/shared/iframe-detector';

import { NotebooksContext, useNotebooksSelector } from './shared/notebooks-context';

function App(): JSX.Element {
  const notebooksSelector = useNotebooksSelector();

  return (
    <>

      {!isEmbedded && <Header />}

      <main className="flex-col flex-1">

        <div className="flex flex-1">

          <NotebooksContext.Provider value={notebooksSelector}>

            <FiltersPanel />

            <ContentSection />

          </NotebooksContext.Provider>

        </div>

      </main>

    </>
  );
}

export default App;