import { useState, useEffect } from 'react'; import { Transition } from '@headlessui/react'; import { twMerge } from 'tailwind-merge'; import { H4 } from '.'; interface LoadingDotsProps { className?: string; isShowing?: boolean; }; interface LoadingDotsInnerProps { className?: string; isShowing?: boolean; type?: 'typing'|'bricks'; message?: string; }; export const LoadingDotsTyping = (props: LoadingDotsProps)=>{ return ( ) } export const LoadingDotsBricks = (props: LoadingDotsProps)=>{ return ( ) } export function LoadingDots({ className, isShowing=true, type = 'typing', message, }: LoadingDotsInnerProps){ const classNames = twMerge("w-full h-full flex flex-col justify-center items-center bg-ui-background gap-6", className); return( { type==='typing' &&
} { type==='bricks' &&
} { message &&

{message}

}
); };