import { useAxios } from "@/lib/hooks"; import { Onboarding } from "@/lib/types/Onboarding"; // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types export const useOnboardingApi = () => { const { axiosInstance } = useAxios(); const getOnboarding = async () => { return (await axiosInstance.get("/onboarding")).data; }; const updateOnboarding = async (onboarding: Partial) => { return (await axiosInstance.put("/onboarding", onboarding)) .data; }; return { getOnboarding, updateOnboarding, }; };