1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| import { LoadingIndicator, LocalesMenuButton } from 'react-admin';
| import { ThemeSwapper } from '../themes/ThemeSwapper';
| import { TenantTip } from './TenantTip';
| import { AiChatWidget } from '@/ai/AiChatWidget';
|
| export const AppBarToolbar = () => (
| <>
| <LocalesMenuButton />
| <ThemeSwapper />
| <LoadingIndicator />
| <AiChatWidget
| trigger="button"
| buttonText="AI 对话"
| buttonVariant="text"
| buttonSx={{
| minWidth: 'auto',
| px: 1.25,
| color: '#fff',
| borderRadius: 2,
| whiteSpace: 'nowrap',
| '&:hover': {
| backgroundColor: 'rgba(255,255,255,0.12)'
| }
| }}
| />
| <TenantTip />
| </>
| );
|
|