content: import React from 'react';
  import {string} from 'prop-types';
  import classNames from 'classnames';
  import WixComponent from '../../BaseComponents/WixComponent';
  import tpaStyleInjector from '../TpaStyleInjector';
  import omit from 'omit';
  
  let styles = {locals: {}};
  try {
    styles = require('!css-loader?modules&camelCase&localIdentName="[path][name]__[local]__[hash:base64:5]"!sass-loader!./TextLink.scss');
  } catch (e) {}
  
  class TextLink extends WixComponent {
    static propTypes = {
      link: string.isRequired,
      id: string,
      children: string
    };
  
    static defaultProps = {
      disabled: false,
      rel: null,
      target: null
    };
  
    render() {
      const {children, className, link} = this.props;
      const {locals} = styles;
      const classes = (classNames([locals['wix-style-react-text-link']], className)).trim();
      const propsToOmit = ['children', 'className', 'link', 'href', 'dataHook', 'injectedStyles'];
  
      return (
        <a className={classes} href={link} {...omit(propsToOmit, this.props)}>
          {children}
        </a>
      );
    }
  }
  
  TextLink.displayName = 'TextLink';
  
  export default tpaStyleInjector(TextLink, styles);
  