Skip to content

Commit

Permalink
add test file to testing mosaic package will remove this later
Browse files Browse the repository at this point in the history
  • Loading branch information
CopyDemon committed Jan 17, 2024
1 parent e67f9af commit 1e82af5
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { Mosaic } from 'react-mosaic-component';
import 'react-mosaic-component/react-mosaic-component.css';

import '@blueprintjs/core/lib/css/blueprint.css';
import '@blueprintjs/icons/lib/css/blueprint-icons.css';


const ELEMENT_MAP: { [viewId: string]: JSX.Element } = {
flowsheetWindow: <div>Flowsheet container</div>,
b: <div>Top Right Window</div>,
c: <div>Bottom Right Window</div>,
};

const MosaicApp = () => (
<div id="app">
<Mosaic
renderTile={(id) => ELEMENT_MAP[id]}
initialValue={{
direction: 'row',
first: 'flowsheetWindow',
second: {
direction: 'column',
first: 'b',
second: 'c',
},
splitPercentage: 40,
}}
/>
</div>
);


export default MosaicApp

0 comments on commit 1e82af5

Please sign in to comment.