2026-04-03 22:06:54 +00:00
|
|
|
import { useUrlParamId } from "@erp/core/hooks";
|
2026-04-10 14:22:09 +00:00
|
|
|
|
2026-04-03 22:06:54 +00:00
|
|
|
import { useCustomerUpdateController } from "./use-customer-update.controller";
|
2026-03-07 18:27:23 +00:00
|
|
|
|
2026-04-03 22:06:54 +00:00
|
|
|
/**
|
|
|
|
|
* Hook para gestionar el controlador de la página de actualización de cliente.
|
2026-04-10 14:22:09 +00:00
|
|
|
*
|
|
|
|
|
* @returns
|
2026-04-03 22:06:54 +00:00
|
|
|
*/
|
2025-10-23 17:29:52 +00:00
|
|
|
|
2026-04-03 22:06:54 +00:00
|
|
|
export const useCustomerUpdatePageController = () => {
|
|
|
|
|
const customerId = useUrlParamId();
|
2025-10-23 17:29:52 +00:00
|
|
|
|
2026-04-03 22:06:54 +00:00
|
|
|
const updateCtrl = useCustomerUpdateController(customerId);
|
2025-10-23 17:29:52 +00:00
|
|
|
|
|
|
|
|
return {
|
2026-04-03 22:06:54 +00:00
|
|
|
updateCtrl,
|
2025-10-23 17:29:52 +00:00
|
|
|
};
|
2026-04-10 14:22:09 +00:00
|
|
|
};
|