Files
webapp-conversation/app/components/chat/loading-anim/index.tsx
2023-06-10 14:04:40 +08:00

18 lines
354 B
TypeScript

'use client'
import type { FC } from 'react'
import React from 'react'
import s from './style.module.css'
export type ILoaidingAnimProps = {
type: 'text' | 'avatar'
}
const LoaidingAnim: FC<ILoaidingAnimProps> = ({
type,
}) => {
return (
<div className={`${s['dot-flashing']} ${s[type]}`}></div>
)
}
export default React.memo(LoaidingAnim)