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.
23 lines
344 B
TypeScript
23 lines
344 B
TypeScript
5 years ago
|
import React from 'react';
|
||
|
|
||
4 years ago
|
type Props = {
|
||
5 years ago
|
loading: boolean;
|
||
4 years ago
|
};
|
||
5 years ago
|
|
||
4 years ago
|
export const SessionSpinner = (props: Props) => {
|
||
|
const { loading } = props;
|
||
5 years ago
|
|
||
4 years ago
|
return (
|
||
|
<>
|
||
|
{loading ? (
|
||
|
<div className="session-loader">
|
||
|
<div />
|
||
|
<div />
|
||
|
<div />
|
||
|
<div />
|
||
|
</div>
|
||
|
) : null}
|
||
|
</>
|
||
|
);
|
||
|
};
|