(staticColor: 'black' | 'white' | undefined)
| 68 | } |
| 69 | |
| 70 | function getBackgroundColor(staticColor: 'black' | 'white' | undefined) { |
| 71 | if (staticColor === 'black') { |
| 72 | return 'linear-gradient(to right,#ddd6fe,#fbcfe8)'; |
| 73 | } else if (staticColor === 'white') { |
| 74 | return 'linear-gradient(to right,#0f172a,#334155)'; |
| 75 | } |
| 76 | return undefined; |
| 77 | } |
| 78 | |
| 79 | class ErrorBoundary extends Component<{children: ReactNode}, {error: string | null}> { |
| 80 | constructor(props) { |