import { WpUser } from '@/Types/types'; import { Button } from '@/Components/ui/button'; export default function ChatNotConnected( { user }: { user: WpUser } ) { const name = user.display_name; const currentPage = window.location.href; const showButton = currentPage.indexOf( 'page=agentwp-admin-settings' ) === -1; return (
Hi { name },
To begin using AgentWP, connect it to the AI services. If this is your first time connecting this site, a quick indexing process will take place.
{ showButton && ( ) }