File tree Expand file tree Collapse file tree 2 files changed +244
-213
lines changed
Expand file tree Collapse file tree 2 files changed +244
-213
lines changed Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import {
3+ Text ,
4+ } from "@fluentui/react-components" ;
5+
6+ export const loadingMessages = [
7+ "Initializing AI agents..." ,
8+ "Generating plan scaffolds..." ,
9+ "Optimizing task steps..." ,
10+ "Applying finishing touches..." ,
11+ ] ;
12+
13+ export interface LoadingMessageProps {
14+ loadingMessage : string ;
15+ iconSrc ?: string ;
16+ iconWidth ?: number ;
17+ iconHeight ?: number ;
18+ }
19+
20+ const LoadingMessage : React . FC < LoadingMessageProps > = ( {
21+ loadingMessage,
22+ iconSrc,
23+ iconWidth = 64 ,
24+ iconHeight = 64
25+ } ) => {
26+ return (
27+ < div className = "loadingWrapper" >
28+ { iconSrc && (
29+ < img
30+ src = { iconSrc }
31+ alt = "Loading animation"
32+ style = { { width : iconWidth , height : iconHeight } }
33+ />
34+ ) }
35+ < Text > { loadingMessage } </ Text >
36+ </ div >
37+ ) ;
38+ } ;
39+
40+ export default LoadingMessage ;
You can’t perform that action at this time.
0 commit comments