import * as React from "react"; import { ResponsiveValue, ThemeValue, RequiredTheme } from "styled-system"; import { AllSystemProps } from "./system/unions"; import { Col } from "./Col"; import { Box } from "./Box"; export type TwoUpProps = AllSystemProps & React.HTMLAttributes & { children: React.ReactNodeArray; gapX: ResponsiveValue>; gapY: ResponsiveValue>; gap: ResponsiveValue>; }; const cells = [ { gridColumn: ["1 / 2", "1 / 2"], gridRow: ["1 / 2", "1 / 2"], }, { gridColumn: ["1 / 2", "2 / 3"], gridRow: ["2 / 3", "1 / 2"], }, ]; export const TwoUp = ({ children, gap = 0, gapX, gapY, ...props }: TwoUpProps) => { const twoChildren = children.slice(0, 2) as React.ReactNodeArray; return ( // @ts-ignore {twoChildren.map((child, index) => ( {child} ))} ); }; TwoUp.displayName = "TwoUp";