index.tsx 354 B

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