|
@@ -41,6 +41,7 @@ type MobileMenuProps = {
|
|
renderCustomStats?: ExcalidrawProps["renderCustomStats"];
|
|
renderCustomStats?: ExcalidrawProps["renderCustomStats"];
|
|
renderSidebars: () => JSX.Element | null;
|
|
renderSidebars: () => JSX.Element | null;
|
|
device: Device;
|
|
device: Device;
|
|
|
|
+ renderWelcomeScreen: boolean;
|
|
};
|
|
};
|
|
|
|
|
|
export const MobileMenu = ({
|
|
export const MobileMenu = ({
|
|
@@ -57,12 +58,13 @@ export const MobileMenu = ({
|
|
renderCustomStats,
|
|
renderCustomStats,
|
|
renderSidebars,
|
|
renderSidebars,
|
|
device,
|
|
device,
|
|
|
|
+ renderWelcomeScreen,
|
|
}: MobileMenuProps) => {
|
|
}: MobileMenuProps) => {
|
|
const { welcomeScreenCenterTunnel, mainMenuTunnel } = useTunnels();
|
|
const { welcomeScreenCenterTunnel, mainMenuTunnel } = useTunnels();
|
|
const renderToolbar = () => {
|
|
const renderToolbar = () => {
|
|
return (
|
|
return (
|
|
<FixedSideContainer side="top" className="App-top-bar">
|
|
<FixedSideContainer side="top" className="App-top-bar">
|
|
- <welcomeScreenCenterTunnel.Out />
|
|
|
|
|
|
+ {renderWelcomeScreen && <welcomeScreenCenterTunnel.Out />}
|
|
<Section heading="shapes">
|
|
<Section heading="shapes">
|
|
{(heading: React.ReactNode) => (
|
|
{(heading: React.ReactNode) => (
|
|
<Stack.Col gap={4} align="center">
|
|
<Stack.Col gap={4} align="center">
|