"use client" import { getCurrentWindow } from '@tauri-apps/api/window' export function TitleBar() { const handleMinimize = async () => { const window = getCurrentWindow() await window.minimize() } const handleMaximize = async () => { const window = getCurrentWindow() const isMaximized = await window.isMaximized() if (isMaximized) { await window.unmaximize() } else { await window.maximize() } } const handleClose = async () => { const window = getCurrentWindow() await window.close() } return (
{/* Left: App title */}
ROLL CALL
{/* Right: Window controls */}
) }