"use client";
import { stagger, useAnimate } from "framer-motion";
import React, { useState } from "react";
export const SkeletonTwo = () => {
const [scope, animate] = useAnimate();
const [animating, setAnimating] = useState(false);
const handleAnimation = async () => {
if (animating) return;
setAnimating(true);
await animate(
".message",
{
opacity: [0, 1],
y: [20, 0],
},
{
delay: stagger(0.5),
}
);
setAnimating(false);
};
return (
Hello chat! Give me all the links from this website -
https://ui.aceternity.com
Why don't you do it yourself?
Umm.. Because I'm paying $20/mo for your services?
You think I work for the money?
Who do you think you are?
I' batman.
Now Playing
{" "}
Something in the way - Nirvana
);
};
const UserMessage = ({ children }: { children: React.ReactNode }) => {
return (
{children}
);
};
const AIMessage = ({ children }: { children: React.ReactNode }) => {
return (
{children}
);
};