import { React, constants } from '../common';

export default () => {
  let isRangeUrl = false;
  if (constants.IS_BROWSER && window.location.pathname.startsWith('/range/')) {
    isRangeUrl = true;
  }

  const rangeMessage = isRangeUrl && '(from range URL)';

  return (
    <div>
      <h1>b.tsx {rangeMessage}</h1>
      <a href={'/'}>Home</a>
    </div>
  );
};
