add BoardToolbar component
This commit is contained in:
parent
6a648c6527
commit
141ca0c927
22
src/components/board/BoardToolbar.tsx
Normal file
22
src/components/board/BoardToolbar.tsx
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import * as React from 'react';
|
||||||
|
import { FunctionComponent } from 'react';
|
||||||
|
|
||||||
|
const BoardToolbar: FunctionComponent<{ visible?: boolean, style?: React.CSSProperties }> = ({ children, visible, style }) => {
|
||||||
|
if(visible === false) return <></>;
|
||||||
|
return (
|
||||||
|
<div style={style} className='toolbar'>
|
||||||
|
{children}
|
||||||
|
<style jsx>{`
|
||||||
|
.toolbar {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-self: stretch;
|
||||||
|
}
|
||||||
|
`}</style>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default BoardToolbar;
|
||||||
Loading…
Reference in New Issue
Block a user