import { createContext, useContext } from "react"; import type { AtlantisFormatFileContextProps } from "./types"; export const formatFileContextDefaultValues = { useCreateThumbnail: () => ({ thumbnail: undefined, error: false }), }; export const AtlantisFormatFileContext = createContext(formatFileContextDefaultValues); export function useAtlantisFormatFileContext(): AtlantisFormatFileContextProps { return useContext(AtlantisFormatFileContext); }