"use client"; import { Info } from "lucide-react"; import { useState } from "react"; export function KeyboardShortcutsTooltip() { const [isVisible, setIsVisible] = useState(false); const shortcuts = [ { key: "Space", action: "Play / Pause" }, { key: "→", action: "Seek forward 10s" }, { key: "←", action: "Seek backward 10s" }, { key: "↑", action: "Volume up 10%" }, { key: "↓", action: "Volume down 10%" }, { key: "M", action: "Toggle mute" }, { key: "N", action: "Next track" }, { key: "P", action: "Previous track" }, { key: "S", action: "Toggle shuffle" }, ]; return (
{isVisible && (
{/* Pointer arrow */}

Keyboard Shortcuts

{shortcuts.map((shortcut) => (
{shortcut.action} {shortcut.key}
))}

Shortcuts work anywhere except when typing in text fields.

)}
); }