( color: AvailableChartColorsKeys, type: ColorUtility, )
| 93 | } |
| 94 | |
| 95 | export const getColorClassName = ( |
| 96 | color: AvailableChartColorsKeys, |
| 97 | type: ColorUtility, |
| 98 | ): string => { |
| 99 | const fallbackColor = { |
| 100 | bg: "bg-gray-500", |
| 101 | stroke: "stroke-gray-500", |
| 102 | fill: "fill-gray-500", |
| 103 | text: "text-gray-500", |
| 104 | } |
| 105 | return chartColors[color]?.[type] ?? fallbackColor[type] |
| 106 | } |
| 107 | |
| 108 | // Tremor getYAxisDomain [v0.0.0] |
| 109 |
no outgoing calls
no test coverage detected