Generate Chat Component App.tsx
ethora-generate-chat-component-app-tsxGenerate a ready-to-paste React App.tsx snippet that mounts @ethora/chat-component. Returns { filename: "App.tsx", snippet }; unpassed values are emitted as placeholders. Does not write any file.
Auth: none required — pure code generator, no API calls. Errors: effectively none. Security note: the snippet includes appToken inline only as a quickstart convenience — do not ship hardcoded tokens to production.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiUrl | No | Ethora API base URL to embed in the snippet, e.g. `https://api.chat.ethora.com/v1`. Omit to emit a placeholder. | |
| roomJid | No | Room JID to open on load. Omit to emit a commented-out placeholder. | |
| appToken | No | appToken to embed in the snippet for quickstart testing. Omit to emit a placeholder. Do NOT hardcode real tokens in production source. |