<commit_before>import React, {PropTypes} from 'react'

import omit from 'lodash/object/omit'
import history from '../history'
import Button from '../components/button'
import Icon from '../components/icon'
import Toolbar from '../components/toolbar'
import Modal from '../components/modal'

function closeModal(location) {
	const query = omit(location.query, ['share'])
	history.pushState(null, location.pathname, query)
}

export default function ShareSheet(props, context) {
	const {
		student,
	} = props

	return <Modal
		backdropClassName='modal-backdrop'
		modalClassName='course course--modal'
		onClose={() => closeModal(context.location)}
	>
		<Toolbar className='window-tools'>
			<Button className='close-modal' onClick={() => closeModal(context.location)}>
				<Icon name='close' />
			</Button>
		</Toolbar>

		<div>
			Share Modal
		</div>
	</Modal>
}

ShareSheet.propTypes = {
	student: PropTypes.object,
}

ShareSheet.contextTypes = {
	location: PropTypes.object,
}<commit_msg>add some sample data to the share sheet<commit_after>import React, {PropTypes} from 'react'

import omit from 'lodash/object/omit'
import history from '../history'
import Button from '../components/button'
import Icon from '../components/icon'
import Toolbar from '../components/toolbar'
import Modal from '../components/modal'
import List from '../components/list'

function closeModal(location) {
	const query = omit(location.query, ['share'])
	history.pushState(null, location.pathname, query)
}

export default function ShareSheet(props, context) {
	const {
		student,
	} = props

	return <Modal
		backdropClassName='modal-backdrop'
		modalClassName='course course--modal'
		onClose={() => closeModal(context.location)}
	>
		<Toolbar className='window-tools'>
			<Button className='close-modal' onClick={() => closeModal(context.location)}>
				<Icon name='close' />
			</Button>
		</Toolbar>

		<div>
			Share "{student.name}" via:
			<List type='bullet'>
				<li>Google Drive</li>
				<li>Email File</li>
				<li>Download File</li>
			</List>
		</div>
	</Modal>
}

ShareSheet.propTypes = {
	student: PropTypes.object,
}

ShareSheet.contextTypes = {
	location: PropTypes.object,
}
{'fraction_non_alphanumeric': 0.15013774104683195, 'fraction_numerical': 0.0, 'mean_word_length': 4.433915211970075, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4009051', 'n_tokens_mistral': 716, 'n_tokens_neox': 667, 'n_words': 169}