forked from tuvn86/webapp-conversation
feat: add ai thinking anim
This commit is contained in:
parent
caf5b31ccd
commit
7a1b139f04
5 changed files with 124 additions and 12 deletions
16
app/components/chat/loading-anim/index.tsx
Normal file
16
app/components/chat/loading-anim/index.tsx
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
'use client'
|
||||
import React, { FC } from 'react'
|
||||
import s from './style.module.css'
|
||||
|
||||
export interface ILoaidingAnimProps {
|
||||
type: 'text' | 'avatar'
|
||||
}
|
||||
|
||||
const LoaidingAnim: FC<ILoaidingAnimProps> = ({
|
||||
type
|
||||
}) => {
|
||||
return (
|
||||
<div className={`${s['dot-flashing']} ${s[type]}`}></div>
|
||||
)
|
||||
}
|
||||
export default React.memo(LoaidingAnim)
|
||||
Loading…
Add table
Add a link
Reference in a new issue