import { Pencil, Trash2 } from 'lucide-react' import { useLocale } from '@meshkee/dashboard-ui' import type { Brand } from '../types/brand' import { useT } from '../i18n/useT' import { Tooltip } from './Tooltip' import rowStyles from './CategoryRow.module.css' import styles from './BrandRow.module.css' interface BrandRowProps { brand: Brand onEdit: (id: string) => void onRemove: (id: string) => void } export function BrandRow({ brand, onEdit, onRemove }: BrandRowProps) { const t = useT() const { locale } = useLocale() const isFa = locale === 'fa' const primaryName = isFa ? brand.nameFa || brand.nameEn : brand.nameEn const secondaryName = isFa ? (brand.nameFa ? brand.nameEn : '') : brand.nameFa return (
{brand.about}
}