diff --git a/src/App.tsx b/src/App.tsx index 838b939..2bcb89f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,8 +1,17 @@ -import { Box, createTheme, Paper, ThemeProvider } from "@mui/material"; +import { + Box, + createTheme, + Divider, + Link, + Paper, + ThemeProvider, + Typography, +} from "@mui/material"; import { blue } from "@mui/material/colors"; +import { useState } from "react"; import { Footer } from "./components/Footer"; import { Header } from "./components/Header"; -import Example from "./example.mdx"; +import Example, { meta } from "./example.mdx"; const theme = createTheme({ palette: { @@ -17,6 +26,7 @@ const theme = createTheme({ }); export const App: React.VFC = () => { + const [open, setOpen] = useState(false); return ( {
- + + {meta.published} + + {meta.title} + {open ? ( + + + + setOpen(false)}> + » close + + + ) : ( + setOpen(true)}> + » read more + + )}