import { LoadingStatus } from "../../deposit/type";
export const getLoadingStatus = ({ isLoading, isSuccess, error, }) => {
    if (isLoading) {
        return LoadingStatus.Pending;
    }
    if (error) {
        return LoadingStatus.Error;
    }
    if (isSuccess) {
        return LoadingStatus.Success;
    }
    return LoadingStatus.Idle;
};
//# sourceMappingURL=getLoadingStatus.js.map