You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
423 B
TypeScript
20 lines
423 B
TypeScript
import { HapusMasterButton } from "@/app/(dashboard)/master/_components/hapus-master-button";
|
|
import { hapusRak } from "../actions";
|
|
|
|
type HapusRakButtonProps = {
|
|
idRak: number;
|
|
nama: string;
|
|
};
|
|
|
|
export function HapusRakButton({ idRak, nama }: HapusRakButtonProps) {
|
|
return (
|
|
<HapusMasterButton
|
|
id={idRak}
|
|
idName="idRak"
|
|
nama={nama}
|
|
entityLabel="rak"
|
|
action={hapusRak}
|
|
/>
|
|
);
|
|
}
|