21 lines
797 B
TypeScript
21 lines
797 B
TypeScript
export type ShowDetailColors = {
|
|
tabColor: string;
|
|
seasonColor: string;
|
|
};
|
|
|
|
export const ShowColors: Record<number, ShowDetailColors> = {
|
|
1: { tabColor: "#009fe2", seasonColor: "#ec5691" },
|
|
2: { tabColor: "#ffffff", seasonColor: "#3fa8f3" },
|
|
3: { tabColor: "#ffffff", seasonColor: "#000000" },
|
|
4: { tabColor: "#8fb4f3", seasonColor: "#4b046c" },
|
|
5: { tabColor: "#ffffff", seasonColor: "#000000" },
|
|
6: { tabColor: "#ffffff", seasonColor: "#ff0000" },
|
|
7: { tabColor: "#25322c", seasonColor: "#957a45" },
|
|
8: { tabColor: "#ffffff", seasonColor: "#0179b5" },
|
|
};
|
|
|
|
export function getShowColors(showId: number): ShowDetailColors {
|
|
if (!showId) return { tabColor: "#009fe2", seasonColor: "#ec5691" };
|
|
return ShowColors[showId] || { tabColor: "#009fe2", seasonColor: "#ec5691" };
|
|
}
|