mirror of
https://github.com/block/buzz.git
synced 2026-10-27 20:41:57 +00:00
35 lines
983 B
TypeScript
35 lines
983 B
TypeScript
import * as React from "react";
|
|
|
|
import { ChatHeader } from "@/features/chat/ui/ChatHeader";
|
|
import type { Channel } from "@/shared/api/types";
|
|
import { ViewLoadingFallback } from "@/shared/ui/ViewLoadingFallback";
|
|
|
|
const WorkflowsView = React.lazy(async () => {
|
|
const module = await import("@/features/workflows/ui/WorkflowsView");
|
|
return { default: module.WorkflowsView };
|
|
});
|
|
|
|
type WorkflowsScreenProps = {
|
|
channels: Channel[];
|
|
};
|
|
|
|
export function WorkflowsScreen({ channels }: WorkflowsScreenProps) {
|
|
return (
|
|
<>
|
|
<ChatHeader
|
|
description="Create, manage, and monitor automated workflows across your channels."
|
|
mode="workflows"
|
|
title="Workflows"
|
|
/>
|
|
|
|
<React.Suspense
|
|
fallback={<ViewLoadingFallback label="Loading workflows..." />}
|
|
>
|
|
<div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden">
|
|
<WorkflowsView channels={channels} />
|
|
</div>
|
|
</React.Suspense>
|
|
</>
|
|
);
|
|
}
|