import { useWorkspaceLayout } from "./workspace"; export function EmptyWorkspace( { disabled, hasProjects, onAddProject, onNewDocument }: { disabled: boolean; hasProjects: boolean; onAddProject: () => void; onNewDocument: () => void; }, ) { let { frame, mode } = useWorkspaceLayout(); return (

{hasProjects ? "No document open" : "Start with a repository"}

{hasProjects ? "Pick one from the sidebar or start a new one." : "Documents in Chopin belong to a GitHub repository, so you, your team and Chopin can write against the code."}

{!hasProjects && ( Manage repository access )}
); }