import classNames from 'classnames'; import React, { memo, useState } from 'react'; import { CookieDropdown } from './CookieDropdown'; import { Icon } from './core/Icon'; import { HStack } from './core/Stacks'; import { EnvironmentActionsDropdown } from './EnvironmentActionsDropdown'; import { RecentRequestsDropdown } from './RecentRequestsDropdown'; import { SettingsDropdown } from './SettingsDropdown'; import { SidebarActions } from './SidebarActions'; import { WorkspaceActionsDropdown } from './WorkspaceActionsDropdown'; import { useOsInfo } from '../hooks/useOsInfo'; import { Button } from './core/Button'; import { appWindow } from '@tauri-apps/api/window'; interface Props { className?: string; } export const WorkspaceHeader = memo(function WorkspaceHeader({ className }: Props) { const osInfo = useOsInfo(); const [maximized, setMaximized] = useState(false); return (
{(osInfo?.osType === 'Linux' || osInfo?.osType === 'Windows_NT') && ( )}
); });