import React from 'react';
import { RoomView } from '../room/RoomView';

type BotChatFallbackProps = {
  eventId?: string;
};

// Chat-fallback body for bot DMs. Rendered by BotExperienceHost when the
// per-room `botShowChatAtomFamily` is true (user picked «Показать чат» in
// the BotShell hero menu, OR the widget failed and BotShell auto-flipped
// here). The «return to widget / retry» affordance lives as a single
// MenuItem at the top of the standard `RoomMenu` (RoomViewHeaderDm:91-122)
// — there is intentionally no floating overlay button here, so the chat
// surface looks identical to a regular DM beyond that one menu item.
//
// We only need `eventId` from the route; bot-specific context (preset,
// room) is consumed by the RoomMenu item via atom families keyed on
// roomId, not via prop drilling.
export function BotChatFallback({ eventId }: BotChatFallbackProps) {
  return <RoomView eventId={eventId} />;
}
