import { Translation } from "react-i18next" import StatusIndicator from "../../fundamentals/status-indicator" export type SimpleProductType = { id: string thumbnail?: string title: string status: string created_at: Date } export const decideStatus = (status: string) => { switch (status) { case "published": return ( {(t) => ( )} ) case "draft": return ( {(t) => ( )} ) case "proposed": return ( {(t) => ( )} ) case "rejected": return ( {(t) => ( )} ) default: return null } }