summaryrefslogtreecommitdiff
path: root/src/views/Detail.js
blob: 51598c193fd6c5e54a83e1f1d4b9fc37b7800eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
 * Detail view, displaying text plus media
 */

export default function Detail({ node }) {
  const index = id + 1;
  const { id, data } = node;
  return (
    <div className="detail">
      <div className="content">
        <div className="title">
          {index}
          <br />
          {data.author}
          <br />
          {data.title}
          <br />
        </div>
        <div
          className="caption"
          dangerouslySetInnerHTML={{ __html: data.caption }}
        />
        <div
          className="description"
          dangerouslySetInnerHTML={{ __html: data.description }}
        />
      </div>
      <div className="media"></div>
    </div>
  );
}