(staticColor: StaticColor)
| 24 | type StaticColor = 'black' | 'white' | 'auto' | undefined; |
| 25 | |
| 26 | function getBackgroundColor(staticColor: StaticColor) { |
| 27 | if (staticColor === 'black') { |
| 28 | return 'linear-gradient(to right,#ddd6fe,#fbcfe8)'; |
| 29 | } else if (staticColor === 'white') { |
| 30 | return 'linear-gradient(to right,#0f172a,#334155)'; |
| 31 | } |
| 32 | return undefined; |
| 33 | } |
| 34 | |
| 35 | export function StaticColorProvider(props: { |
| 36 | children: ReactNode; |
no outgoing calls
no test coverage detected