import * as React from "react"; interface ILinkButtonComponentProps { label: string; buttonLabel: string; url?: string; onClick: () => void; } export class LinkButtonComponent extends React.Component { constructor(props: ILinkButtonComponentProps) { super(props); } onLink() { if (this.props.url) { window.open(this.props.url, '_blank'); } } render() { return (
this.onLink()}> {this.props.label}
); } }