jbilcke-hf's picture
jbilcke-hf HF Staff
up update
affe711
raw
history blame contribute delete
641 Bytes
import { cn } from "@/lib/utils"
import { ReactNode } from "react"
export function Dialogue({ children, className = "", isLoading }: {
children: ReactNode
className?: string
isLoading: boolean
}) {
return (
<div
className={cn(
`fixed left-6 max-w-[60%]`,
`transition-all duration-300`,
`text-xl rounded-2xl backdrop-blur-xl bg-stone-700/40 dark:bg-stone-700/40 p-4 text-gray-50 dark:text-gray-50`,
className
)}
style={{
textShadow: "1px 0px 2px #000000ab"
}}>{
isLoading
? <p>⌛ Generating story, please wait..</p>
: children
}</div>
)
}