import { useTranslation } from "react-i18next" import { StatusCell } from "../../common/status-cell" type AdminOnlyCellProps = { adminOnly: boolean } export const AdminOnlyCell = ({ adminOnly }: AdminOnlyCellProps) => { const { t } = useTranslation() const color = adminOnly ? "blue" : "green" const text = adminOnly ? t("general.admin") : t("general.store") return {text} } export const AdminOnlyHeader = () => { const { t } = useTranslation() return (
{t("fields.availability")}
) }