danmu-sim/app/songs/delete-song-button.tsx
2024-04-06 23:32:31 +08:00

22 lines
322 B
TypeScript

"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>
);
}