Spaces:
Paused
Paused
File size: 1,320 Bytes
e5c2fd4 8f24b44 e5c2fd4 8f24b44 e5c2fd4 43dd1ac 8f24b44 43dd1ac e5c2fd4 2f34958 8f24b44 2f34958 43dd1ac e5c2fd4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
"use client"
import { DotsHorizontalIcon } from "@radix-ui/react-icons"
import { Row } from "@tanstack/react-table"
import { Button } from "@/components/ui/button"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuShortcut,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu"
import { Video } from "@/app/types"
export function VideoActions({
row,
}: {
row: Row<Video>
}) {
const task = row.original
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
variant="ghost"
className="flex h-8 w-8 p-0 data-[state=open]:bg-muted"
>
<DotsHorizontalIcon className="h-4 w-4" />
<span className="sr-only">Open menu</span>
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-[160px]">
{/*
<DropdownMenuItem>
Pause generation
<DropdownMenuShortcut>ββ«</DropdownMenuShortcut>
</DropdownMenuItem>
*/}
<DropdownMenuItem>Download</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem>
Delete
<DropdownMenuShortcut>ββ«</DropdownMenuShortcut>
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
)
} |