({
- label: name,
- value: id,
- })),
- ]}
- position="popper"
- value={workspaceId ?? "new"}
- placeholder="Select a workspace"
- onValueChange={(value) => {
- if (value === "new") {
- router.push("/workspaces/new");
- return;
- }
+ {sidebarCollapsed ? null : (
+ <>
+