import {
ArrowRightOutlined,
CheckOutlined,
ClockCircleOutlined,
CloseOutlined,
LogoutOutlined,
MinusOutlined,
WarningOutlined,
} from '@ant-design/icons';
import { Alert } from 'antd';
import type React from 'react';
import ShinyText from '../shiny-text';
export function timeCostStrElement(timeCost?: number) {
let str: string;
if (typeof timeCost !== 'number') {
str = '-';
} else {
str = `${(timeCost / 1000).toFixed(2)}s`;
}
return (
{str}
);
}
export const iconForStatus = (status: string) => {
switch (status) {
case 'finished':
case 'passed':
case 'success':
case 'connected':
return (
Please run one of the commands under the midscene project directory:
a. npx midscene-playground
b. npx --yes @midscene/web
);
// server launch tip
export const serverLaunchTip = (
notReadyMessage: React.ReactNode | string = errorMessageServerNotReady,
) => (