import { getCurrentWindow } from '@tauri-apps/api/window'; import { Maximize2, Minus, X } from 'lucide-react'; import type { PointerEvent } from 'react'; import { useTranslation } from 'react-i18next'; import type { ResolvedWindowControlStyle } from '../utils/windowControlStyle'; const appWindow = getCurrentWindow(); const stopTitlebarDrag = (event: PointerEvent) => { event.stopPropagation(); }; interface WindowControlsProps { side: 'left' | 'right'; controlStyle: ResolvedWindowControlStyle; } export function WindowControls({ side, controlStyle }: WindowControlsProps) { const { t } = useTranslation(); return (
$.window.controls)} role="group" >
); }