aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/App.tsx
blob: 12cf9311d256987038c2a263c5c3a578e24a3ee9 (plain) (blame)
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
import Box from '@mui/material/Box';
import React from 'react';

import TopBar from './TopBar';
import EditorArea from './editor/EditorArea';
import EditorButtons from './editor/EditorButtons';
import GenerateButton from './editor/GenerateButton';

export default function App(): JSX.Element {
  return (
    <Box display="flex" flexDirection="column" sx={{ height: '100vh' }}>
      <TopBar />
      <Box
        display="flex"
        justifyContent="space-between"
        alignItems="center"
        p={1}
      >
        <EditorButtons />
        <GenerateButton />
      </Box>
      <Box flexGrow={1} flexShrink={1} sx={{ overflow: 'auto' }}>
        <EditorArea />
      </Box>
    </Box>
  );
}