dify/web/app/components/base/chat/chat/loading-anim/index.tsx

19 lines
379 B
TypeScript

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