const colors = [
    {
        number: 1,
        color: "blue",
        hex: "#0000FF",
        bgColor: "#ADD8E6",
    },
    {
        number: 2,
        color: "orange",
        hex: "#FFA500",
        bgColor: "#FFDAB9",
    },
    {
        number: 3,
        color: "green",
        hex: "#008000",
        bgColor: "#90EE90",
    },
    {
        number: 4,
        color: "brown",
        hex: "#A52A2A",
        bgColor: "#D2B48C",
    },
    {
        number: 5,
        color: "slate",
        hex: "#708090",
        bgColor: "#C9CDCF",
    },
    {
        number: 6,
        color: "white",
        hex: "#FFFFFF",
        bgColor: "#FFFFFF",
    },
    {
        number: 7,
        color: "red",
        hex: "#FF0000",
        bgColor: "#FFC0CB",
    },
    {
        number: 8,
        color: "black",
        hex: "#000000",
        bgColor: "#2F4F4F",
    },
    {
        number: 9,
        color: "yellow",
        hex: "#FFFF00",
        bgColor: "#FFFFE0",
    },
    {
        number: 10,
        color: "violet",
        hex: "#EE82EE",
        bgColor: "#E6E6FA",
    },
    {
        number: 11,
        color: "rose",
        hex: "#FF007F",
        bgColor: "#FFC1C1",
    },
    {
        number: 12,
        color: "aqua",
        hex: "#00FFFF",
        bgColor: "#AFEEEE",
    },
];

export const getHex = (number) => {
    number = ((number - 1) % 12) + 1;
    const color = colors.find((color) => color.number === number);
    return color.hex;
};
export const getColor = (number) => {
    number = ((number - 1) % 12) + 1;
    const color = colors.find((color) => color.number === number);
    return color.color;
};

export const getFiberInfo = (number) => {
    number = ((number - 1) % 12) + 1;
    const color = colors.find((color) => color.number === number);
    return color;
};

export default colors;
