export const MY_PROPOSALS_PREFIX = "MY_PROPOSALS"; export const VOTED_PROPOSALS_PREFIX = "VOTED_PROPOSALS"; export const convertStatusToColor = (status) => { switch (status) { case 1: return "#f2e370"; case 2: return "#f06f73"; case 3: return "#f06f73"; case 4: return "#60c45b"; case 5: return "#60c45b"; case 6: return "#f06f73"; case 7: return "#f2e370"; default: return "#a2b7ce"; } } export const convertStatusToLabel = (status) => { switch (status) { case 1: return "Active"; case 2: return "Canceled"; case 3: return "Defeated"; case 4: return "Succeeded"; case 5: return "Queued"; case 6: return "Expired"; case 7: return "Executed"; default: return "Pending"; } }