Files
Ghom 291dcf9515 Merge pull request #10575 from Arturlang/TGUIs_Nexties
[TESTMERGE] Properly working TGUI Next
2021-01-04 19:47:54 -03:00

32 lines
581 B
JavaScript

import { Table } from './Table';
import { pureComponentHooks } from 'common/react';
export const Grid = props => {
const { children, ...rest } = props;
return (
<Table {...rest}>
<Table.Row>
{children}
</Table.Row>
</Table>
);
};
Grid.defaultHooks = pureComponentHooks;
export const GridColumn = props => {
const { size = 1, style, ...rest } = props;
return (
<Table.Cell
style={{
width: size + '%',
...style,
}}
{...rest} />
);
};
Grid.defaultHooks = pureComponentHooks;
Grid.Column = GridColumn;