diff --git a/src/App.tsx b/src/App.tsx index 45ac2c2..c1b3e92 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -17,7 +17,8 @@ import { Play, Power, Plus, - Radio, + Repeat1, + Repeat2, Search, Server, Settings, @@ -54,8 +55,8 @@ function Cover({ album, size = "medium" }: { album: Pick void; active?: boolean; className?: string }) { - return ; +function IconButton({ label, children, onClick, active = false, pressed, className = "" }: { label: string; children: React.ReactNode; onClick?: () => void; active?: boolean; pressed?: boolean; className?: string }) { + return ; } const navItems: Array<{ view: View; label: string; icon: React.ReactNode }> = [ @@ -95,6 +96,11 @@ export default function App() { }); const player = usePlayer(libraryTracks); const hasLibraryTracks = libraryTracks.length > 0; + const repeatLabel = player.repeatMode === "off" + ? "Turn repeat all on" + : player.repeatMode === "all" + ? "Repeat all is on; turn repeat one on" + : "Repeat one is on; turn repeat off"; const visibleTracks = useMemo(() => { const needle = query.trim().toLowerCase(); @@ -326,8 +332,6 @@ export default function App() { {item.icon}{item.label} ))} -

Discover

- +
Picked from your library

Let it find you again.

{player.current.artist} has been in your rotation lately. Start here, then let the queue wander.