mirror of https://github.com/sgoudham/carbon.git
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.
47 lines
1.1 KiB
JavaScript
47 lines
1.1 KiB
JavaScript
8 years ago
|
import React from 'react'
|
||
8 years ago
|
import Dropdown from './Dropdown'
|
||
|
import ColorPicker from './Colorpicker'
|
||
|
import Settings from './Settings'
|
||
|
import Button from './Button'
|
||
8 years ago
|
import { THEMES, LANGUAGES } from '../lib/constants'
|
||
8 years ago
|
|
||
8 years ago
|
const Toolbar = (props) => (
|
||
|
<div id="toolbar">
|
||
8 years ago
|
<Dropdown list={THEMES} onChange={props.onThemeChange}/>
|
||
|
<Dropdown list={LANGUAGES} onChange={props.onLanguageChange}/>
|
||
8 years ago
|
<ColorPicker
|
||
|
onChange={props.onBGChange}
|
||
|
bg={props.bg}
|
||
|
/>
|
||
8 years ago
|
<Settings />
|
||
8 years ago
|
<div className="buttons">
|
||
|
<Button
|
||
|
onClick={props.upload}
|
||
|
title="Copy Imgur Link"
|
||
|
bg="#84ACFC"
|
||
|
style={{ borderRadius: '3px 0px 0px 3px' }}
|
||
|
/>
|
||
|
<Button onClick={props.save} title="Save Image" bg="#C3E98D" />
|
||
|
</div>
|
||
8 years ago
|
<style jsx>{`
|
||
|
#toolbar {
|
||
|
width: 100%;
|
||
|
height: 40px; // TODO fix
|
||
|
margin-bottom: 16px;
|
||
|
display: flex;
|
||
|
position: relative;
|
||
|
z-index: 1;
|
||
8 years ago
|
font-size: 14px;
|
||
|
color: #4F6875;
|
||
|
}
|
||
|
|
||
|
.buttons {
|
||
|
display: flex;
|
||
|
margin-left: auto;
|
||
8 years ago
|
}
|
||
|
`}</style>
|
||
|
</div>
|
||
|
)
|
||
8 years ago
|
|
||
8 years ago
|
export default Toolbar
|