ui/client/features/project-gate/components/NoProjectScreen
Cockpit client (features), v0.9. Source: ui/client/features/project-gate/components/NoProjectScreen.tsx.
Functions#
NoProjectScreen()#
NoProjectScreen(
__namedParameters):Element
Defined in: ui/client/features/project-gate/components/NoProjectScreen.tsx:29
Presentation-only "Open a project" screen: the Cockpit starts with nothing open and never loads the directory it was launched from. One prompt, one picker, scoped to the workspace.
Props#
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
workspaceRoot |
`string | null` | Yes | — |
lastProject |
`string | null` | Yes | — |
opening |
boolean |
Yes | — | |
error |
`string | null` | Yes | — |
onOpen |
(dir: string) => void |
Yes | — | |
picker |
ReactNode |
Yes | — | The "Your projects" list (another feature's controller, composed by the controller). |
newProject |
ReactNode |
No | — | The New project form (another feature's controller, composed by the controller). |
clone |
ReactNode |
No | — | The clone-a-repository form (another feature's controller, composed by the controller). |
samplePath |
`string | null` | No | null |
sampleLoading |
boolean |
No | — |
Returns#
Element