import React from 'react';
import styles from './style.less';

interface QuoteProps {
  link?: string;
  children: string;
}

const Quote: React.FC<QuoteProps> = ({ link, children }) => {
  return (
    <span className={styles.quote}>
      {link ? (
        <a href={link} target="_blank">
          {children}
        </a>
      ) : (
        children
      )}
    </span>
  );
};

export default Quote;
