'use client'; import { PolymorphicComponentProps } from '@kalink-ui/dibbly'; import { ElementType } from 'react'; import { gridChildResponsive } from './grid-child.responsive'; import type { GridChildVariants } from './grid-child.css'; import type { Responsive } from '../../styles/responsive'; interface GridChildVariantResponsive { colSpan?: Responsive>; rowSpan?: Responsive>; colStart?: Responsive>; colEnd?: Responsive>; rowStart?: Responsive>; rowEnd?: Responsive>; justifySelf?: Responsive>; alignSelf?: Responsive>; } export type GridChildProps = PolymorphicComponentProps & GridChildVariantResponsive; export function GridChild({ className, ...props }: GridChildProps) { const { use: Comp = 'div', ...rest } = props; const { colSpan, rowSpan, colStart, colEnd, rowStart, rowEnd, justifySelf, alignSelf, ...domProps } = rest as GridChildVariantResponsive & Record; return ( )} /> ); }