import type { Theme } from './utils'; import { getStyles } from './utils'; import styled from 'styled-components'; type WithArrayType = { [K in keyof T]: Array | T[K]; }; type AllowedProps = Omit; export type GridProps = Partial>; export const Grid = styled.div` display: grid; ${({ theme, ...props }: GridProps & { theme: Theme }) => getStyles(props, theme)} `; export type FlexProps = GridProps; export const Flex = styled.div` display: flex; ${({ theme, ...props }: GridProps & { theme: Theme }) => getStyles(props, theme)} `; export type BoxProps = GridProps; export const Box = styled.div` ${({ theme, ...props }: GridProps & { theme: Theme }) => getStyles(props, theme)} `;