diff options
Diffstat (limited to 'src/components/shared/Loading.tsx')
| -rw-r--r-- | src/components/shared/Loading.tsx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components/shared/Loading.tsx b/src/components/shared/Loading.tsx new file mode 100644 index 0000000..12ced75 --- /dev/null +++ b/src/components/shared/Loading.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +import s from './Loading.module.scss'; + +type Props = { + height?: string; +}; + +const Loading = ({ height }: Props) => { + const style = height ? { height } : {}; + return ( + <div className={s.loading} style={style}> + <div className={s.spinner} /> + </div> + ); +}; + +export default Loading; |
