Files
hackaton-2025-web-frontend/src/misc/WaitResponse.js
Vyacheslav K 7e131bf638 some fixes
2025-04-30 14:27:13 +03:00

26 lines
933 B
JavaScript

function WaitResponse(args) {
return (
<>
<div className={(args.show ? "flex":"hidden")+ ' delay-300 animate-[fadeIn_0.5s_ease-out] items-start gap-2 justify-center px-2'}>
<div className="flex space-x-1 h-full items-center">
<div className="w-2 h-2 bg-gray-400 rounded-full animate-pulse" />
<div
className="w-2 h-2 bg-gray-400 rounded-full animate-pulse"
style={{ animationDelay: "0.1s" }}
/>
<div
className="w-2 h-2 bg-gray-400 rounded-full animate-pulse"
style={{ animationDelay: "0.3s" }}
/>
</div>
<span className='text-gray-400 animate-pulse'>Генерация ответа...</span>
</div>
</>
);
}
export default WaitResponse;