import { useAxios } from "@/lib/hooks"; import { getUserIdentity, updateUserIdentity, UserIdentityUpdatableProperties, } from "./user"; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types export const useUserApi = () => { const { axiosInstance } = useAxios(); return { updateUserIdentity: async ( userIdentityUpdatableProperties: UserIdentityUpdatableProperties ) => updateUserIdentity(userIdentityUpdatableProperties, axiosInstance), getUserIdentity: async () => getUserIdentity(axiosInstance), }; };