import { ListItemIcon, ListItemText, MenuProps } from "@mui/material"; import { FileResponse } from "../../../api/explorer.ts"; import { SquareMenu, SquareMenuItem } from "../../FileManager/ContextMenu/ContextMenu.tsx"; import FileIcon from "../../FileManager/Explorer/FileIcon.tsx"; export interface PlaylistProps extends MenuProps { file: FileResponse; playlist: FileResponse[]; playIndex: (index: number, volume?: number) => void; } const Playlist = ({ file, playlist, playIndex, onClose, ...rest }: PlaylistProps) => { return ( {playlist.map((item, index) => ( playIndex(index)} selected={item.path == file.path}> {item.name} ))} ); }; export default Playlist;