(content: string)
| 42 | }) |
| 43 | |
| 44 | export const createErrorMessage = (content: string): ChatMessage => ({ |
| 45 | id: `error-${Date.now()}`, |
| 46 | variant: 'error', |
| 47 | content, |
| 48 | timestamp: formatTimestamp(), |
| 49 | }) |
| 50 | |
| 51 | export const generateAiMessageId = (): string => |
| 52 | `ai-${Date.now()}-${Math.random().toString(16).slice(2)}` |
no test coverage detected