'use client'

import type * as React from 'react'
import { cn } from '@admin/utils/shared/cn'

function DataGridCell({ className, ...props }: React.ComponentProps<'div'>) {
  return (
    <div
      role="cell"
      data-slot="data-grid-cell"
      className={cn(
        'grid min-h-12 items-center px-3 py-1.5 whitespace-nowrap [&:has([role=checkbox])]:pr-0',
        className
      )}
      {...props}
    />
  )
}

export { DataGridCell }
