Agent: {config.agentId}
Thread: {config.threadId}
Labels: {JSON.stringify(config.labels)}
);
}
```
Note: The hook returns `null` if no provider is found in the component tree.
## Localization Example
The provider is ideal for implementing localization:
```tsx
import { useTranslation } from "react-i18next";
function LocalizedChat() {
const { t } = useTranslation();
return (