'use strict';

var React = require('react');
var DirectionProvider = require('../../../provider/direction/DirectionProvider.js');

const useDirection = () => {
  const direction = React.useContext(DirectionProvider.DirectionContext);
  return {
    direction,
    isRTL: direction === 'rtl'
  };
};

exports.useDirection = useDirection;
//# sourceMappingURL=useDirection.js.map
