'use client';
import Badge from './Badge';
export default function TableRow({product, columns}) {
return (
{columns.map(col => (
|
{col.key === 'status' ? (
) : col.key === 'price' ? (
${product[col.key]}
) : col.key === 'rating' ? (
★ {product[col.key]}
({product.reviewCount})
) : col.key === 'name' ? (
{product.name}
{product.category}
) : (
product[col.key]
)}
|
))}
);
}