import { motion } from "framer-motion"; import { FaSadCry } from "react-icons/fa"; import classNames from "classnames"; interface Props { prompt: string; error?: string; className?: string; } export const CollectionLoading: React.FC = ({ prompt, error, className, }) => { return (
{error ? ( ) : (
)}

{error ? error : prompt?.length > 180 ? `${prompt.slice(0, 180)}...` : prompt}

); };