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.
23 lines
484 B
TypeScript
23 lines
484 B
TypeScript
import { HapusMasterButton } from "@/app/(dashboard)/master/_components/hapus-master-button";
|
|
import { hapusPelanggan } from "../actions";
|
|
|
|
type HapusPelangganButtonProps = {
|
|
kdCustomer: string;
|
|
nama: string;
|
|
};
|
|
|
|
export function HapusPelangganButton({
|
|
kdCustomer,
|
|
nama,
|
|
}: HapusPelangganButtonProps) {
|
|
return (
|
|
<HapusMasterButton
|
|
id={kdCustomer}
|
|
idName="kdCustomer"
|
|
nama={nama}
|
|
entityLabel="pelanggan"
|
|
action={hapusPelanggan}
|
|
/>
|
|
);
|
|
}
|