import { createContext } from 'react';
import type { GetProfileApiResponse } from '../types/settingsApiType';

export interface ProfileContextType {
  isLoadingProfile: boolean;
  refetchProfile: (options?: {
    force?: boolean;
  }) => Promise<GetProfileApiResponse | undefined>;
}

export const ProfileContext = createContext<ProfileContextType | undefined>(
  undefined,
);
