#AI
zhou zhou
3 天以前 e6369c9b64a82eeada6b6f0658d2ae786787e101
rsf-admin/src/layout/AppBarToolbar.jsx
@@ -1,12 +1,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 />
    </>
);