'use client' import React from 'react' import { cn } from '../../../utils/cn' import type { TableCellProps } from './types' /** @deprecated Use `DataTable` from `data-table` instead. */ export function TableCell({ children, align = 'left', className, width }: TableCellProps) { const getAlignment = () => { switch (align) { case 'center': return 'justify-center text-center' case 'right': return 'justify-end text-right' default: return 'justify-start text-left' } } return (
{typeof children === 'string' || typeof children === 'number' ? ( {children} ) : ( children )}
) }