import styled from 'styled-components' export const Grid = styled.div` display: grid; grid-template-columns: ${({ columns }) => columns.join(" ")}; grid-template-rows: ${({ rows }) => rows.join(" ")}; grid-template-areas: ${({ areas }) => areas.map(r => `'${r.join(" ")}'`).join(" ")}; width: 100%; height: 100%; ` export const GridArea = styled.div` grid-area: ${p => p.name}; width: 100%; height: 1