"use client"; import { useState } from "react"; import { Download, Facebook, Twitter } from "lucide-react"; export default function AudioSidebar() { const [selected, setSelected] = useState("4K"); const options = [ { title: "4K", size: "3840 x 2160 px", file: "138 Mb", format: "mov", }, { title: "HD", size: "1920 x 1080 px", file: "100 Mb", format: "mov", }, ]; return (
{/* TAG */}
POLRI

{/* OPTIONS */}

Opsi Ukuran Audio

{options.map((item) => (
setSelected(item.title)} className="cursor-pointer" >
{/* LEFT */}
{/* CUSTOM RADIO */}
{selected === item.title && (
)}

{item.title}

{/* RIGHT */}

{item.size}

{item.file}   |   {item.format}

))}
{/* DOWNLOAD */}
{/* SHARE */}

Bagikan:

); } /* COMPONENTS */ function Tag({ label }: { label: string }) { return ( {label} ); } function ShareIcon({ children }: { children: React.ReactNode }) { return (
{children}
); }