import { forwardRefWithAs, ResponsiveProp, mapResponsiveProp, mq, } from '@ag.ds-next/core'; import { Box } from '@ag.ds-next/box'; import { ColumnRange } from './utils'; export type ColumnProps = { columnSpan?: ResponsiveProp; columnStart?: ResponsiveProp; columnEnd?: ResponsiveProp; }; export const Column = forwardRefWithAs<'div', ColumnProps>(function Column( { columnSpan, columnStart, columnEnd, ...props }, ref ) { const styles = columnStyles({ columnSpan, columnStart, columnEnd }); return ; }); const columnStyles = ({ columnSpan, columnStart, columnEnd, }: Pick) => { return mq({ gridColumn: mapResponsiveProp(columnSpan, (v) => `span ${v}/span ${v}`), gridColumnStart: mapResponsiveProp(columnStart), gridColumnEnd: mapResponsiveProp(columnEnd), }); };