You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openai-cookbook/apps/file-q-and-a/nextjs-with-flask-server/client/src/components/LoadingText.tsx

19 lines
418 B
TypeScript

import React, { memo } from "react";
import LoadingSpinner from "./LoadingSpinner";
type LoadingTextProps = {
text: string;
};
function LoadingText(props: LoadingTextProps) {
return (
<div className="text-gray-500 text-md flex flex-row justify-center items-center">
<LoadingSpinner />
{props.text && <div className="flex">{props.text}</div>}
</div>
);
}
export default memo(LoadingText);