Files
nanobot/nanobot/channels/feishu/webui/FeishuAssistantsPanel.tsx
T
chengyongru 30e43aec82 refactor(webui): separate presentation views and expand component gallery (#6179)
* refactor(webui): organize shared components with an internal gallery

* refactor(webui): decouple views and expand component gallery

* fix(docker): include channel sources in WebUI build

* refactor(webui): cover all channel interfaces in gallery

* docs(webui): remove manual paragraph wrapping
2026-10-14 00:11:00 +08:00

26 lines
796 B
TypeScript

import type { ChannelPluginPanelProps } from "@/channel-plugins/types";
import { ChannelInstancesPanel } from "@/components/settings/channels/ChannelInstancesPanel";
import { FeishuAssistantsPanelView } from "./FeishuAssistantsPanelView";
import { FeishuConnectFlow } from "./FeishuConnectFlow";
export function FeishuAssistantsPanel({
token,
feature,
showBrandLogos,
onFeaturesUpdate,
}: ChannelPluginPanelProps) {
return <ChannelInstancesPanel
feature={feature}
showBrandLogos={showBrandLogos}
onFeaturesUpdate={onFeaturesUpdate}
renderView={(props) => <FeishuAssistantsPanelView
{...props}
renderConnectFlow={(options) => <FeishuConnectFlow
{...options}
token={token}
onFeaturesUpdate={onFeaturesUpdate}
/>}
/>}
/>;
}