import React, { FunctionComponent, PropsWithChildren } from 'react'; type Props = { onClick?: () => void href?: string target?: string style?: React.CSSProperties } const Hyperlink: FunctionComponent> = ({ style={}, onClick, href, target, children }) => { let style0: React.CSSProperties = { color: 'gray', cursor: 'pointer', textDecoration: 'underline', ...style }; return ( { href ? ( {children} ) : ( {children} ) } ); } export default Hyperlink