import { HorizontalLine } from "components/HorizontalLine"; import { Button } from "components/Inputs/Button"; import { NavOption } from "components/PanelComponents/NavOption"; import { ToolTip } from "components/ToolTip"; import { useAppLayout } from "contexts/AppLayoutContext"; import { AppStaticProps } from "graphql/getAppStaticProps"; import { useMediaDesktop } from "hooks/useMediaQuery"; import Markdown from "markdown-to-jsx"; import Link from "next/link"; import { Icon } from "components/Ico"; import { cIf, cJoin } from "helpers/className"; import { isDefinedAndNotEmpty } from "helpers/others"; interface Props { langui: AppStaticProps["langui"]; } export function MainPanel(props: Props): JSX.Element { const { langui } = props; const isDesktop = useMediaDesktop(); const { mainPanelReduced = false, toggleMainPanelReduced, setConfigPanelOpen, } = useAppLayout(); return (
{/* Reduce/expand main menu */}
{(!mainPanelReduced || !isDesktop) && (

Accord’s Library

)}
{langui.open_settings}} placement="right" className="text-left" disabled={!mainPanelReduced} >
{/* */} {/* */} {mainPanelReduced && isDesktop ? "" : }
{isDefinedAndNotEmpty(langui.licensing_notice) && (

{langui.licensing_notice}

)}
{isDefinedAndNotEmpty(langui.copyright_notice) && (

{langui.copyright_notice}

)}
); }