@gravity-ui/uikit
Version:
Gravity UI base styling and components
11 lines (10 loc) • 404 B
JavaScript
import * as React from 'react';
import { Platform } from "./constants.js";
const initialValue = {
mobile: false,
platform: Platform.BROWSER,
useHistory: () => ({ action: '', replace() { }, push() { }, goBack() { } }),
useLocation: () => ({ pathname: '', search: '', hash: '' }),
};
export const MobileContext = React.createContext(initialValue);
//# sourceMappingURL=MobileContext.js.map