-
Notifications
You must be signed in to change notification settings - Fork 34
/
Viewer.tsx
28 lines (25 loc) · 941 Bytes
/
Viewer.tsx
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
import * as React from "react";
import ViewerItem from "../ViewerItem/ViewerItem";
import styles from "./Viewer.module.css";
import { ViewerItemCardType } from "../ViewerItem/ViewerItemCardType";
import { IViewerProps } from "./IViewerProps";
class Viewer extends React.Component<IViewerProps, {}> {
public render() {
const { id, article } = this.props;
return (
<section id={id} className={styles.container}>
<div className={styles.title}>Card Types sample</div>
<div className={styles.big}>
<ViewerItem {...article} typeSingleton={ViewerItemCardType.Big} />
</div>
<div className={styles.medium}>
<ViewerItem {...article} typeSingleton={ViewerItemCardType.Medium} />
</div>
<div className={styles.small}>
<ViewerItem {...article} typeSingleton={ViewerItemCardType.Small} />
</div>
</section>
);
}
}
export default Viewer;