aboutsummaryrefslogtreecommitdiff
path: root/src/components/BlockQuote.js
blob: 605ae03db08c6c4272ee61166edada77170eab05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React from 'react';
import ExternalLink from './ExternalLink.js';
import styles from './BlockQuote.module.css';
import { Icon } from '@iconify/react'; // Import the entire Iconify library.

export default function BlockQuote({children, refs, href}) {
  if (href) {
    return (
      <blockquote className={styles.qt}>
          <header><cite><ExternalLink href={href}>{refs}</ExternalLink></cite></header>
          {children}
      </blockquote>
    );
  }
  return (
    <blockquote className={styles.qt}>
        <header><cite>{refs}</cite></header>
        {children}
    </blockquote>
  );
}