Skip to content

Instantly share code, notes, and snippets.

@wongni
Created January 12, 2018 04:25
Show Gist options
  • Save wongni/82a78e98f6aeffe9496bf91d77b5895d to your computer and use it in GitHub Desktop.
Save wongni/82a78e98f6aeffe9496bf91d77b5895d to your computer and use it in GitHub Desktop.
import React from 'react'
import styles from './ViewerTemplate.scss'
import classNames from 'classnames/bind'
const cx = classNames.bind(styles)
const ViewerTemplate = ({ viewer, spaceNavigator }) => {
return (
<div className={cx('viewer-template')}>
<header>
Astronomy Picture of the Day
</header>
<div className={cx('viewer-wrapper')}>
{viewer}
<div className={cx('space-navigator-wrapper')}>
{spaceNavigator}
</div>
</div>
</div>
)
}
export default ViewerTemplate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment