mirror of https://github.com/msgbyte/tailchat
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.
18 lines
358 B
TypeScript
18 lines
358 B
TypeScript
import React from 'react';
|
|
import { Spinner } from './Spinner';
|
|
|
|
interface LoadingSpinnerProps {
|
|
tip?: string;
|
|
}
|
|
export const LoadingSpinner: React.FC<LoadingSpinnerProps> = React.memo(
|
|
(props) => {
|
|
return (
|
|
<div>
|
|
<Spinner />
|
|
{props.tip ?? 'Processing'}
|
|
</div>
|
|
);
|
|
}
|
|
);
|
|
LoadingSpinner.displayName = 'LoadingSpinner';
|