(input: ChatTheme)
| 1055 | * Properly handles nested markdown configuration |
| 1056 | */ |
| 1057 | export const cloneChatTheme = (input: ChatTheme): ChatTheme => ({ |
| 1058 | ...input, |
| 1059 | markdown: input.markdown |
| 1060 | ? { |
| 1061 | ...input.markdown, |
| 1062 | headingFg: input.markdown.headingFg |
| 1063 | ? { ...input.markdown.headingFg } |
| 1064 | : undefined, |
| 1065 | } |
| 1066 | : undefined, |
| 1067 | }) |
| 1068 | |
| 1069 | /** |
| 1070 | * Resolve a theme color value with optional fallback |
no outgoing calls
no test coverage detected