import { HttpTypes } from "@medusajs/types" import { useTranslation } from "react-i18next" import { getOrderPaymentStatus } from "../../../../../lib/order-helpers" import { StatusCell } from "../../common/status-cell" type PaymentStatusCellProps = { status: HttpTypes.AdminOrder["payment_status"] } export const PaymentStatusCell = ({ status }: PaymentStatusCellProps) => { const { t } = useTranslation() const { label, color } = getOrderPaymentStatus(t, status) return {label} } export const PaymentStatusHeader = () => { const { t } = useTranslation() return (
{t("fields.payment")}
) }