Spaces:
Runtime error
Runtime error
File size: 641 Bytes
fd2aa6b affe711 fd2aa6b |
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 |
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>
)
} |