Files
CHOMPStation2/tgui/packages/tgui_ch/components/Grid.jsx
CHOMPStation2 85ca379bb2 [MIRROR] [TGUI 5.0 Prep] JS to JSX (#7414)
Co-authored-by: Selis <sirlionfur@hotmail.de>
Co-authored-by: Selis <selis@xynolabs.com>
2023-12-13 23:23:03 +01:00

39 lines
680 B
JavaScript

/**
* @file
* @copyright 2020 Aleksej Komarov
* @license MIT
*/
import { Table } from './Table';
import { pureComponentHooks } from 'common/react';
/** @deprecated */
export const Grid = (props) => {
const { children, ...rest } = props;
return (
<Table {...rest}>
<Table.Row>{children}</Table.Row>
</Table>
);
};
Grid.defaultHooks = pureComponentHooks;
/** @deprecated */
export const GridColumn = (props) => {
const { size = 1, style, ...rest } = props;
return (
<Table.Cell
style={{
width: size + '%',
...style,
}}
{...rest}
/>
);
};
Grid.defaultHooks = pureComponentHooks;
Grid.Column = GridColumn;