mirror of
https://github.com/oceanprotocol/status
synced 2025-01-09 05:14:49 +01:00
18 lines
368 B
TypeScript
18 lines
368 B
TypeScript
|
import React from 'react'
|
||
|
import styles from './Spinner.module.css'
|
||
|
|
||
|
const Spinner = ({ message }: { message?: string }) => {
|
||
|
return (
|
||
|
<div className={styles.spinner}>
|
||
|
{message && (
|
||
|
<div
|
||
|
className={styles.spinnerMessage}
|
||
|
dangerouslySetInnerHTML={{ __html: message }}
|
||
|
/>
|
||
|
)}
|
||
|
</div>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export default Spinner
|