Add banner explaining static openscad images

This commit is contained in:
Kurt Hutten
2021-09-05 20:57:57 +10:00
parent e4c95cb396
commit 597bf89135
9 changed files with 724 additions and 643 deletions

View File

@@ -1,12 +1,13 @@
import { useContext } from 'react'
import { MosaicWindowContext } from 'react-mosaic-component'
import Svg from 'src/components/Svg/Svg'
import OpenscadStaticImageMessage from 'src/components/OpenscadStaticImageMessage/OpenscadStaticImageMessage'
const PanelToolbar = ({
panelName,
showTopGradient,
}: {
panelName: string
panelName: 'Viewer' | 'Console'
showTopGradient?: boolean
}) => {
const { mosaicWindowActions } = useContext(MosaicWindowContext)
@@ -16,6 +17,7 @@ const PanelToolbar = ({
<div className="absolute inset-x-0 top-0 h-10 bg-gradient-to-b from-ch-gray-800 to-transparent" />
)}
<div className="absolute top-0 right-0 flex items-center h-9">
{panelName === 'Viewer' && <OpenscadStaticImageMessage />}
<button
className="bg-ch-gray-760 text-ch-gray-300 px-3 rounded-bl-lg h-full cursor-not-allowed"
aria-label={`${panelName} settings`}