You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
446 B
JavaScript
14 lines
446 B
JavaScript
import { Icon } from './Icon.jsx'
|
|
import { MODE_COURSES } from './EventsView.jsx'
|
|
|
|
export const ToolOverlay = ({ mode, toggleMode, onClose }) => (
|
|
<div class="overlay">
|
|
<button class="icon primary" onClick={toggleMode}>
|
|
<Icon name={mode === MODE_COURSES ? 'calendar_view_month' : 'list'} />
|
|
</button>
|
|
<button class="icon" onClick={onClose}>
|
|
<Icon name="close" />
|
|
</button>
|
|
</div>
|
|
)
|