index.tsx 332 B

12345678910111213141516
  1. 'use client'
  2. import React, { FC } from 'react'
  3. import s from './style.module.css'
  4. export interface ILoaidingAnimProps {
  5. type: 'text' | 'avatar'
  6. }
  7. const LoaidingAnim: FC<ILoaidingAnimProps> = ({
  8. type
  9. }) => {
  10. return (
  11. <div className={`${s['dot-flashing']} ${s[type]}`}></div>
  12. )
  13. }
  14. export default React.memo(LoaidingAnim)