// Color 常量
const color = [
    { key: "green", value: "#05BB4C" },
    { key: "yellow", value: "#F8DE5B" },
    { key: "gray", value: "#606769" },
    { key: "grayl", value: "#B3BDC0" },
    { key: "purple", value: "#4B55AE" },
    { key: "orange", value: "#e17e23" },
    { key: "blue", value: "#1a93cf" },
    { key: "red", value: "#BA3237" },
    { key: "pink", value: "#c531c7" },
	{ key: "cyan", value: "#1cbbb4" },
	{ key: "brown", value: "#a5673f" },
	{ key: "mauve", value: "#9c26b0" },
];

function getColor(key) {
    if (!key)
        key = "green"
    return color.find((t) => { return t.key == key }).value;
}

export default {
    color,
    getColor
}
