continue re-design
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
"use client";
|
||||
|
||||
import { useState, useEffect } from "react";
|
||||
import ScrambleText from "@/components/ui/motion/scramble-text";
|
||||
|
||||
export function UsageLoadingText({ text = "Loading..." }: { text?: string }) {
|
||||
const [isInView, setIsInView] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
setIsInView(true);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className="text-xs text-zinc-500">
|
||||
<ScrambleText text={text} delay={0} duration={1} isInView={isInView} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user