({ onNewChat, onOpenSettings }: WelcomePageProps)
| 11 | } |
| 12 | |
| 13 | export function WelcomePage({ onNewChat, onOpenSettings }: WelcomePageProps): React.JSX.Element { |
| 14 | return ( |
| 15 | <Flex className="welcome-page" vertical align="center" justify="center"> |
| 16 | <Title level={2} className="welcome-title"> |
| 17 | 欢迎使用 Pointer |
| 18 | </Title> |
| 19 | <Text type="secondary" className="welcome-subtitle"> |
| 20 | 智能 AI 聊天助手 |
| 21 | </Text> |
| 22 | <Flex gap={12} className="welcome-actions"> |
| 23 | <Button type="primary" icon={<PlusOutlined />} size="large" onClick={onNewChat}> |
| 24 | 新建对话 |
| 25 | </Button> |
| 26 | <Button icon={<SettingOutlined />} size="large" onClick={onOpenSettings}> |
| 27 | 设置 |
| 28 | </Button> |
| 29 | </Flex> |
| 30 | </Flex> |
| 31 | ) |
| 32 | } |
nothing calls this directly
no outgoing calls
no test coverage detected