import React from "react"; import styled from "styled-components"; import { useGitModEnabled, useGitProtectedMode, } from "pages/Editor/gitSync/hooks/modHooks"; import { GitProtectedBranchCallout as GitProtectedBranchCalloutNew } from "git"; import BottomBar from "components/BottomBar"; import EditorWrapperContainer from "pages/Editor/commons/EditorWrapperContainer"; import Sidebar from "./routers/Sidebar"; import LeftPane from "./routers/LeftPane"; import MainPane from "./routers/MainPane"; import RightPane from "./routers/RightPane"; import { ProtectedCallout } from "../components/ProtectedCallout"; import { useGridLayoutTemplate } from "./hooks/useGridLayoutTemplate"; import { Areas } from "./constants"; function GitProtectedBranchCallout() { const isGitModEnabled = useGitModEnabled(); const isProtectedMode = useGitProtectedMode(); if (isGitModEnabled) { return ; } if (isProtectedMode) { return ; } return null; } const GridContainer = styled.div` display: grid; width: 100vw; height: 100%; `; const LayoutContainer = styled.div<{ name: string }>` position: relative; grid-area: ${(props) => props.name}; `; export const StaticLayout = React.memo(() => { const { areas, columns } = useGridLayoutTemplate(); const isSidebarVisible = columns[0] !== "0px"; return ( <> `"${area.join(" ")}"`) .join("\n"), gridTemplateColumns: columns.join(" "), }} > {isSidebarVisible ? :
} ); });