import type { Workspace } from "@yaakapp-internal/models"; import { patchModel, settingsAtom } from "@yaakapp-internal/models"; import { useAtomValue } from "jotai"; import { useState } from "react"; import { switchWorkspace } from "../commands/switchWorkspace"; import { Button } from "./core/Button"; import { Checkbox } from "./core/Checkbox"; import { Icon } from "./core/Icon"; import { InlineCode } from "./core/InlineCode"; import { HStack, VStack } from "./core/Stacks"; interface Props { hide: () => void; workspace: Workspace; } export function SwitchWorkspaceDialog({ hide, workspace }: Props) { const settings = useAtomValue(settingsAtom); const [remember, setRemember] = useState(false); return (

Where would you like to open {workspace.name}?

{settings && ( )}
); }