import * as React from 'react'; import classnames from 'classnames'; interface ILinkProps { className?: string; color?: string; url?: string; onClick?: (e) => void; } const Link: React.SFC = ({ ...props }) => { const getColor = () => { return props.color ? `text-${props.color}` : ''; }; const cnText = classnames(props.className, getColor()); const getUrl = () => { return props.url === '' ? '' : props.url ? props.url : '#'; }; return ( {props.children} ); }; export default Link;