mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
24 lines
616 B
TypeScript
24 lines
616 B
TypeScript
import React from 'react';
|
|
|
|
import { Alert } from '@luxfi/ui/alert';
|
|
|
|
interface Props {
|
|
isLoading?: boolean;
|
|
className?: string;
|
|
}
|
|
|
|
const ServiceDegradationWarning = ({ isLoading, className }: Props) => {
|
|
return (
|
|
<Alert
|
|
loading={ isLoading }
|
|
status="info"
|
|
className={ className }
|
|
startElement={ <div className="animate-spin rounded-full border-2 border-current border-t-transparent w-4 h-4 my-[3px] shrink-0"/> }
|
|
>
|
|
Data sync in progress... page will refresh automatically once data is available
|
|
</Alert>
|
|
);
|
|
};
|
|
|
|
export default React.memo(ServiceDegradationWarning);
|