import "./Queue.css"; import { IonButton, IonContent, IonHeader, IonModal, IonSearchbar, IonTitle, IonToolbar, } from "@ionic/react"; import React, { useState } from "react"; import { ArrowBigUp, Plus } from "lucide-react"; interface NowPlayingDiscProps { coverUrl: string; title: string; artist: string; upvoted?: boolean; upvotes?: number; } interface QueueProps { songs: NowPlayingDiscProps[]; } const Queue: React.FC = ({ songs }) => { const [showModal, setShowModal] = useState(false); const [searchText, setSearchText] = useState(""); const handleUpVote = () => {}; return (

Up next

{ setShowModal(true); }} />
{songs.map((song, index) => { const isUpvoted = song.upvoted ?? false; const votes = song.upvotes ?? 0; return (
{`${song.title}
{song.title}
{song.artist}
{votes}
); })} setShowModal(false)}> Add Songs setShowModal(false)} > Close setSearchText(e.detail.value!)} placeholder="Search..." />
); }; export default Queue;