import React from 'react' import css from 'styled-jsx/css' import GridContainer from './grid-container' import GridBasicItem, { GridBasicItemComponentProps } from './basic-item' interface Props { className: string } const defaultProps = { className: '', } export type GridProps = Props & typeof defaultProps & GridBasicItemComponentProps const Grid: React.FC> = ({ children, className, ...props }) => { const { className: resolveClassName, styles } = css.resolve` margin: 0; box-sizing: border-box; padding: var(--gaid-gap-unit); ` return ( {children} {styles} ) } type MemoGridComponent

= React.NamedExoticComponent

& { Container: typeof GridContainer } type ComponentProps = Partial & Omit & GridBasicItemComponentProps Grid.defaultProps = defaultProps export default React.memo(Grid) as MemoGridComponent