import { Copy, Minus, Square, X } from 'lucide-react' import { useMemo } from 'react' import { useWindowControls } from '@/hooks/useWindowControls' import { getPlatform, isElectron } from '@/lib/runtime' const dragStyle = { WebkitAppRegion: 'drag' } as React.CSSProperties & { WebkitAppRegion: string } const noDragStyle = { WebkitAppRegion: 'no-drag' } as React.CSSProperties & { WebkitAppRegion: string } export function TitleBar() { const { close, isMaximized, minimize, toggleMaximize } = useWindowControls() const isMac = useMemo(() => getPlatform() === 'darwin', []) if (!isElectron()) return null return (