Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
- translate the interface into Russian - add picture-in-picture and video fit modes - derive skip segments from Jellyfin chapter markers - align player navigation and add a window drag region - keep audio playback alive across routes
34 lines
936 B
TypeScript
34 lines
936 B
TypeScript
import Drawer from "@mui/material/Drawer";
|
|
import IconButton from "@mui/material/IconButton";
|
|
import Tooltip from "@mui/material/Tooltip";
|
|
import React, { useState } from "react";
|
|
import QueueView from "@/components/queue/queueView";
|
|
|
|
/** Opens the play queue in a side drawer. */
|
|
const QueueButton = () => {
|
|
const [open, setOpen] = useState(false);
|
|
|
|
return (
|
|
<>
|
|
<Tooltip title="Очередь">
|
|
<IconButton onClick={() => setOpen(true)} aria-label="Открыть очередь">
|
|
<span className="material-symbols-rounded">queue_music</span>
|
|
</IconButton>
|
|
</Tooltip>
|
|
<Drawer
|
|
anchor="right"
|
|
open={open}
|
|
onClose={() => setOpen(false)}
|
|
slotProps={{
|
|
backdrop: { sx: { backgroundColor: "rgb(0 0 0 / 0.3)" } },
|
|
paper: { className: "queue-drawer-paper" },
|
|
}}
|
|
>
|
|
<QueueView variant="drawer" onClose={() => setOpen(false)} />
|
|
</Drawer>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default QueueButton;
|