import { MobileChatHeader } from "@code/ui/components/mobile-chat";

import { STATUS_COPY } from "@/lib/chat/constants";
import type { ChatHeaderProps } from "@/lib/chat/types";

export const ChatHeader = ({ status }: ChatHeaderProps) => (
  <MobileChatHeader
    active={status !== "connecting" && status !== "error"}
    statusLabel={STATUS_COPY[status]}
  />
);
