/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @format
 */

'use strict';

import * as React from 'react';

export function SinceVersion({version}: {version: string}): React.MixedElement {
  return (
    // $FlowFixMe[incompatible-type] class vs className
    <span class="version added" title={`Added in ${version}`}>
      &ge;{version}
    </span>
  );
}

export function UntilVersion({version}: {version: string}): React.MixedElement {
  return (
    // $FlowFixMe[incompatible-type] class vs className
    <span class="version removed" title={`Removed after ${version}`}>
      &le;{version}
    </span>
  );
}
