mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
11 lines
206 B
JavaScript
11 lines
206 B
JavaScript
class AnchorLink extends Component {
|
|
render() {
|
|
const { isExternal, children } = this.props;
|
|
if (isExternal) {
|
|
return (<a>{children}</a>);
|
|
}
|
|
|
|
return (<Link>{children}</Link>);
|
|
}
|
|
}
|