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
512 B
TypeScript
23 lines
512 B
TypeScript
import { HapusMasterButton } from "@/app/(dashboard)/master/_components/hapus-master-button";
|
|
import { hapusSatuanBarang } from "../actions";
|
|
|
|
type HapusSatuanBarangButtonProps = {
|
|
idSatuanBarang: number;
|
|
nama: string;
|
|
};
|
|
|
|
export function HapusSatuanBarangButton({
|
|
idSatuanBarang,
|
|
nama,
|
|
}: HapusSatuanBarangButtonProps) {
|
|
return (
|
|
<HapusMasterButton
|
|
id={idSatuanBarang}
|
|
idName="idSatuanBarang"
|
|
nama={nama}
|
|
entityLabel="satuan"
|
|
action={hapusSatuanBarang}
|
|
/>
|
|
);
|
|
}
|