import { useState, useCallback } from 'react';
import { deleteDeviceForPushNotification } from 'react-native-cloud-ca';
const useDeleteDeviceForPushNotification = () => {
  const [result, setResult] = useState(null);
  const [error, setError] = useState(null);
  const [isLoading, setIsLoading] = useState(false);
  const deleteDeviceForPushNotificationFunc = useCallback(async params => {
    try {
      setIsLoading(true);
      const response = await deleteDeviceForPushNotification(params);
      setResult(response);
    } catch (e) {
      setError(e);
    } finally {
      setIsLoading(false);
    }
  }, []);
  return [result, error, deleteDeviceForPushNotificationFunc, isLoading];
};
export default useDeleteDeviceForPushNotification;
//# sourceMappingURL=useDeleteDeviceForPushNotification.js.map