Quote

Error rendering component

Unknown plugin "module-resolver" specified in "base" at 0, attempted to resolve relative to "/home/circleci/wellcomecollection.org/common/views/components/Quote"

// @flow
import {font} from '../../../utils/classnames';
import PrismicHtmlBlock from '../PrismicHtmlBlock/PrismicHtmlBlock';
import type {HTMLString} from '../../../services/prismic/types';

type Props = {|
  text: HTMLString,
  citation: ?HTMLString
|}

const Quote = ({text, citation}: Props) => (
  <blockquote
    className={`quote quote--block ${font({s: 'HNL3'})}`}>
    <PrismicHtmlBlock html={text} />

    {citation &&
      <footer className='quote__footer flex'>
        <cite className={`quote__cite flex flex--v-end ${font({s: 'HNL5'})}`}>
          <PrismicHtmlBlock html={citation} />
        </cite>
      </footer>
    }
  </blockquote>
);

export default Quote;
{
  "text": [
    {
      "type": "paragraph",
      "text": "Said Hamlet to Ophelia,\nI'll draw a sketch of thee,\nWhat kind of pencil shall I use?\n2B or not 2B?",
      "spans": []
    }
  ],
  "citation": [
    {
      "type": "paragraph",
      "text": "Spike Milligan - A Silly Poem",
      "spans": [
        {
          "type": "hyperlink",
          "start": null,
          "end": 29,
          "data": {
            "url": "https://www.poemhunter.com/poem/a-silly-poem/"
          }
        }
      ]
    }
  ]
}

There are no notes for this item.