22 lines
322 B
TypeScript
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>
|
|
);
|
|
}
|