Skip to content

Commit 49db995

Browse files
committed
conciliate code
1 parent f3ac34e commit 49db995

File tree

2 files changed

+244
-213
lines changed

2 files changed

+244
-213
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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;

0 commit comments

Comments
 (0)