Gitako/src/components/LoadingIndicator.tsx
2020-05-29 22:28:33 +08:00

16 lines
389 B
TypeScript

import { Icon } from 'components/Icon'
import * as React from 'react'
type Props = {
text: React.ReactNode
}
export function LoadingIndicator({ text }: Props) {
return (
<div className={'loading-indicator-container'}>
<div className={'loading-indicator'}>
<Icon className={'loading-indicator-icon'} type={'hourglass'} />
{text}
</div>
</div>
)
}