import { createContext, useContext } from "react";
import { Platform } from "react-native-web";
import { jsx } from "react/jsx-runtime";
const PlatformContext = createContext({
  platform: Platform.OS
});
function PlatformProvider({
  children,
  platform
}) {
  return /* @__PURE__ */ jsx(PlatformContext.Provider, { value: { platform: platform || Platform.OS }, children });
}
const usePlatform = () => useContext(PlatformContext).platform;
export {
  PlatformProvider,
  usePlatform
};
//# sourceMappingURL=PlatformContext.js.map
