diff --git a/components/solutions/SolutionView.jsx b/components/solutions/SolutionView.jsx index aab8ed89..625ab567 100644 --- a/components/solutions/SolutionView.jsx +++ b/components/solutions/SolutionView.jsx @@ -1,66 +1,38 @@ -import React, { useState, useEffect, useRef } from 'react' +import React, { useState } from 'react' -import { ErrorBoundary } from 'react-error-boundary' import { baseTheme } from '../../constants/baseTheme'; import { ThemeProvider } from '@mui/material/styles'; import CssBaseline from '@mui/material/CssBaseline'; -import { mdComponents } from "../../constants/mdxProvider"; import Link from '@mui/material/Link'; -import { Stack } from '@mui/material' -import { Chip } from '@mui/material' import { TopBar } from '@/components/dashboard'; -import { MiniStatisticsCard } from "@/components/dashboard"; -import { MDXProvider } from '@mdx-js/react'; -import { Menu, ButtonMenu, NavigationDrawer } from '@/components/airview-ui'; -import { ControlTable } from '@/components/compliance/ControlTable'; -import { ControlDataDisplay } from '@/components/compliance/ControlData'; -import { useMdx } from '@/lib/content/mdx' -import Container from '@mui/material/Container'; -import CloseIcon from '@mui/icons-material/Close'; +import { Menu, NavigationDrawer } from '@/components/airview-ui'; import { PagedOutput } from '@/components/display/PagedOutput'; import { PresentationOutput } from '@/components/display/PresentationOutput'; -import { Dialog, DialogTitle, DialogContent, DialogActions, Button, IconButton, Typography, MenuItem, Box, Alert, Grid } from '@mui/material'; -import { Container as MuiContainer } from "@mui/material"; import SlideshowIcon from '@mui/icons-material/Slideshow'; +import { IconButton, Typography, MenuItem, Box, Alert, Grid } from '@mui/material'; -import { - - AsideAndMainContainer, - Aside, - Main, - -} from '@/components/airview-ui'; - -import { Previewer } from 'pagedjs' - -import { Tile } from '@/components/dashboard/Tiles' -import path from 'path'; - -import { siteConfig } from "../../site.config.js"; +import { AsideAndMainContainer, Aside, Main } from '@/components/airview-ui'; export function SolutionView({ - knowledge, - solutions, - designs, children, frontmatter, file, - content + content, + menuStructure }) { + console.log('SolutionView:menuStructure: ', menuStructure) const navDrawerWidth = 300; const topBarHeight = 64; const [menuOpen, setMenuOpen] = useState(true); - const [dialogOpen, setDialogOpen] = useState(false); - const [controlUrl, setControlUrl] = useState(''); const [print, setPrint] = useState(false); const [presentation, setPresentation] = useState(false); const handleOnNavButtonClick = () => setMenuOpen((prevState) => !prevState); - const { solutionMenu, chapterFiles, knowledgeFiles, designFiles } = fileStructure(solutions) + const { solutionMenu, chapterFiles, knowledgeFiles, designFiles } = menuStructure; function handlePrint() { setPrint(!print); @@ -120,12 +92,10 @@ export function SolutionView({ {children && children}