Files
nanobot/nanobot/channels/whatsapp/webui/WhatsAppConnectFlow.tsx
T
chengyongru f23a6d1485 refactor: remove verified unused internals (#6460)
* refactor: remove verified unused internals

* test(linear): synchronize webhook shutdown with writer join
2026-10-26 21:45:36 +08:00

27 lines
780 B
TypeScript

import type { ChannelPluginConnectFlowProps } from "@/channel-plugins/types";
import { ChannelQrConnectFlow } from "@/components/settings/channels/ChannelQrConnectFlow";
import { WhatsAppConnectFlowView, useWhatsAppConnectLabels } from "./WhatsAppConnectFlowView";
export function WhatsAppConnectFlow({
idleLabel,
connectRequestId,
onFeaturesUpdate,
}: ChannelPluginConnectFlowProps) {
const labels = useWhatsAppConnectLabels();
return (
<ChannelQrConnectFlow
channelName="whatsapp"
idleLabel={idleLabel}
connectRequestId={connectRequestId}
autoStart
minimalPending
forceOnRepeat
labels={labels}
renderView={(props) => <WhatsAppConnectFlowView {...props} />}
onFeaturesUpdate={onFeaturesUpdate}
/>
);
}