import React from 'react';
import { getCurrentWindow } from '@tauri-apps/api/window';
import { usePlayerStore } from '../store/playerStore';
export default function TitleBar() {
const win = getCurrentWindow();
const currentTrack = usePlayerStore(s => s.currentTrack);
const isPlaying = usePlayerStore(s => s.isPlaying);
return (
{currentTrack && (
<>
{isPlaying ? '▶' : '⏸'}
{currentTrack.artist && `${currentTrack.artist} – `}{currentTrack.title}
>
)}
);
}