function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

/*
Copyright (c) 2018 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 React from 'react';
import { Checkbox } from '../checkbox/index.js';
import StyledRadioMark from './radiomark.js';
import { Label as StyledLabel, Input as StyledInput, Root as StyledRoot } from './styled-components.js';

var Radio = function Radio(props) {
  if (process.env.NODE_ENV !== "production") {
    // eslint-disable-next-line no-console
    console.warn("This StyledRadio component will be deprecated in the next major version. Please\n      update your code to use the 'Radio' component instead. See examples at https://baseui.design/components/radio/.\n    ");
  }

  return React.createElement(Checkbox, _extends({
    overrides: {
      Root: StyledRoot,
      Checkmark: StyledRadioMark,
      Label: StyledLabel,
      Input: StyledInput
    }
  }, props));
};

export default Radio;