|
|
|
|
|
|
|
|
import type { FC } from 'react' |
|
|
import type { FC } from 'react' |
|
|
import React from 'react' |
|
|
import React from 'react' |
|
|
import s from './style.module.css' |
|
|
import s from './style.module.css' |
|
|
|
|
|
import cn from '@/utils/classnames' |
|
|
|
|
|
|
|
|
export type ILoadingAnimProps = { |
|
|
export type ILoadingAnimProps = { |
|
|
type: 'text' | 'avatar' |
|
|
type: 'text' | 'avatar' |
|
|
|
|
|
|
|
|
type, |
|
|
type, |
|
|
}) => { |
|
|
}) => { |
|
|
return ( |
|
|
return ( |
|
|
<div className={`${s['dot-flashing']} ${s[type]}`}></div> |
|
|
|
|
|
|
|
|
<div className={cn(s['dot-flashing'], s[type])} /> |
|
|
) |
|
|
) |
|
|
} |
|
|
} |
|
|
export default React.memo(LoadingAnim) |
|
|
export default React.memo(LoadingAnim) |