danmu-sim/app/songs/delete-song-button.tsx

22 lines
322 B
TypeScript
Raw Normal View History

2024-04-06 23:32:31 +08:00
"use client";
import { deleteSong } from "./actions";
export default function DeleteSongButton({
className,
id,
}: {
className?: string | undefined;
id: number;
}) {
return (
<button
className={className}
onClick={() => {
deleteSong(id);
}}
>
</button>
);
}