* refactor: remove verified unused internals * test(linear): synchronize webhook shutdown with writer join
27 lines
780 B
TypeScript
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}
|
|
/>
|
|
);
|
|
}
|