```tsx
import {AiChat, ReadyCallback, ReadyEventDetails} from '@nlux/react';
import {useCallback} from 'react';

const readyCallback = useCallback<ReadyCallback>((readyDetails: ReadyEventDetails) => {
    console.log('Chat is ready. Props used to initialize the chat:', readyDetails.aiChatProps);
}, [/* Callback dependencies */]);
```

```tsx
// Provide the readyCallback callback as part of the events prop
<AiChat events={{ready: readyCallback}} adapter={adapter} />
```
