/*
Copyright (c) 2018-2019 Uber Technologies, Inc.

This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
import * as React from 'react';
export const LevelContext = React.createContext(0);
export const HeadingLevel = ({
  children
}) => React.createElement(LevelContext.Consumer, null, level => React.createElement(LevelContext.Provider, {
  value: level + 1
}, children));
export default HeadingLevel;