UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

26 lines 1.17 kB
import * as tslib_1 from "tslib"; import * as React from 'react'; import { PureComponent } from 'react'; import { akColorB300, akColorB400, } from '@atlaskit/util-shared-styles'; import styled from 'styled-components'; // tslint:disable-next-line:variable-name var StyledAnchor = (_a = ["\n color: ", ";\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n"], _a.raw = ["\n color: ", ";\n\n &:hover {\n color: ", ";\n text-decoration: underline;\n }\n"], styled.a(_a, akColorB400, akColorB300)); var Link = (function (_super) { tslib_1.__extends(Link, _super); function Link() { return _super !== null && _super.apply(this, arguments) || this; } Link.prototype.render = function () { var _a = this.props, href = _a.href, _b = _a.target, target = _b === void 0 ? '_blank' : _b; var anchorProps = { href: href, target: target, title: href, }; return (React.createElement(StyledAnchor, tslib_1.__assign({}, anchorProps), this.props.children)); }; return Link; }(PureComponent)); export default Link; var _a; //# sourceMappingURL=link.js.map