File size: 1,263 Bytes
a61ba58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import React from "react";
import { Box, Paper, Typography, Stack } from "@mui/material";
import { UniverseMetrics } from "./UniverseMetrics";

export const UniverseView = ({ universe }) => {
  return (
    <Paper variant="outlined" sx={{ p: 2, height: "calc(100vh - 100px)" }}>
      <Stack spacing={3}>
        {/* Universe Info */}
        <Box>
          <Typography variant="h6" color="primary" gutterBottom>
            Universe Information
          </Typography>
          <UniverseMetrics
            style={universe?.style}
            genre={universe?.genre}
            epoch={universe?.epoch}
            macguffin={universe?.macguffin}
            showTitle={false}
          />
        </Box>

        {/* Base Story */}
        <Box>
          <Typography variant="h6" color="primary" gutterBottom>
            Base Story
          </Typography>
          <Paper
            variant="outlined"
            sx={{
              p: 2,
              backgroundColor: "background.default",
              whiteSpace: "pre-wrap",
            }}
          >
            <Typography variant="body2" color="text.secondary">
              {universe?.base_story}
            </Typography>
          </Paper>
        </Box>
      </Stack>
    </Paper>
  );
};