mirror of
https://github.com/projectstorm/react-diagrams.git
synced 2025-08-15 17:25:12 +08:00
18 lines
326 B
TypeScript
18 lines
326 B
TypeScript
import * as React from 'react';
|
|
import styled from '@emotion/styled';
|
|
|
|
namespace S {
|
|
export const Tray = styled.div`
|
|
min-width: 200px;
|
|
background: rgb(20, 20, 20);
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
`;
|
|
}
|
|
|
|
export class TrayWidget extends React.Component {
|
|
render() {
|
|
return <S.Tray>{this.props.children}</S.Tray>;
|
|
}
|
|
}
|