File size: 848 Bytes
5881efa
 
 
5240c42
5881efa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { useMemo } from "react";
import { motion } from "framer-motion";

import { Collection as CollectionType } from "@/utils/type";

interface Props {
  prompt: string;
}

export const CollectionLoading: React.FC<Props> = ({ prompt }) => {
  return (
    <div className="h-[377px] w-full relative">
      <motion.div
        initial={{ y: 100, opacity: 0 }}
        animate={{ y: 0, opacity: 1 }}
        transition={{ duration: 0.35, delay: 0.1 }}
        className="rounded-3xl h-[377px] cursor-pointer group overflow-hidden relative z-[1] group bg-primary/70 flex flex-col justify-between p-8"
      >
        <div className="loading-dots translate-y-[5px]">
          <span />
          <span />
          <span />
        </div>
        <p className="text-white/50 font-semibold text-xl">{prompt}</p>
      </motion.div>
    </div>
  );
};