* 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
26 lines
796 B
TypeScript
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}
|
|
/>}
|
|
/>}
|
|
/>;
|
|
}
|