import { Maximize2, Pin, PinOff, X } from 'lucide-react'; import type { TFunction } from 'i18next'; import { IS_LINUX } from '../../utils/platform'; interface Props { trackTitle: string | undefined; alwaysOnTop: boolean; toggleOnTop: () => void; showMain: () => void; closeMini: () => void; t: TFunction; } export function MiniTitlebar({ trackTitle, alwaysOnTop, toggleOnTop, showMain, closeMini, t, }: Props) { return (
{IS_LINUX ? ( {trackTitle ?? 'Psysonic Mini'} ) : ( // macOS/Windows already render a native titlebar with the window // title + close button; we just need a flexible spacer so the // action buttons sit right. )} {/* macOS + Windows already provide Close via the native titlebar — skip the duplicate so the in-app titlebar stays minimal. */} {IS_LINUX && ( )}
); }