feat: action buttons

This commit is contained in:
TrèsAbhi committed 2025-10-14 12:19:28 -05:00
1 parent e1a6e4e38d
commit 222b690fba
5 files changed
+55 -15

No files matched your search

@@ -1,11 +1,10 @@
import { Box, Button, Flex } from "@radix-ui/themes";
import { Box, Flex } from "@radix-ui/themes";
import { useLocale } from "../hooks/useLocale";
import { Playlist } from "../stores/playlist";
import { CurrentlyPlaying } from "./CurrentlyPlaying";
import { PlaylistActions } from "./PlaylistActions";
import { PlaylistTable } from "./PlaylistTable";
export function PlaylistOrder() {
const { strings } = useLocale();
return (
<Flex
@@ -18,15 +17,7 @@ export function PlaylistOrder() {
>
<CurrentlyPlaying />
<Button
onClick={() => {
Playlist.mutate((draft) => {
draft.list = undefined;
});
}}
>
{strings.website.tools.playlist.clear}
</Button>
<PlaylistActions />
<Box flexGrow="1" width="100%" position="relative">
<PlaylistTable />