You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.tsx 350B

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 ILoadingAnimProps = {
  6. type: 'text' | 'avatar'
  7. }
  8. const LoadingAnim: FC<ILoadingAnimProps> = ({
  9. type,
  10. }) => {
  11. return (
  12. <div className={`${s['dot-flashing']} ${s[type]}`}></div>
  13. )
  14. }
  15. export default React.memo(LoadingAnim)