|
1
|
import { useTranslation } from "react-i18next" |
|
2
|
import { PlaceholderCell } from "../../common/placeholder-cell" |
|
3
|
|
|
4
|
type ShippingOptionCellProps = { |
|
5
|
name?: string | null |
|
6
|
} |
|
7
|
|
|
8
|
export const ShippingOptionCell = ({ name }: ShippingOptionCellProps) => { |
|
9
|
if (!name) { |
|
10
|
return <PlaceholderCell /> |
|
11
|
} |
|
12
|
|
|
13
|
return ( |
|
14
|
<div className="flex size-full items-center overflow-hidden"> |
|
15
|
<span className="truncate">{name}</span> |
|
16
|
</div> |
|
17
|
) |
|
18
|
} |
|
19
|
|
|
20
|
export const ShippingOptionHeader = () => { |
|
21
|
const { t } = useTranslation() |
|
22
|
|
|
23
|
return ( |
|
24
|
<div className="flex items-center overflow-hidden"> |
|
25
|
<span className="truncate">{t("fields.name")}</span> |
|
26
|
</div> |
|
27
|
) |
|
28
|
} |