2
0
Files
bot/packages/embeds/nextjs/src/index.ts
2023-10-26 15:57:55 +02:00

30 lines
629 B
TypeScript

import type {
BotProps,
PopupProps,
BubbleProps,
} from '@typebot.io/js/dist/index'
import dynamic from 'next/dynamic'
export const Standard: React.ComponentType<
BotProps & {
style?: React.CSSProperties
className?: string
}
> = dynamic(() => import('@typebot.io/react/src/Standard'), { ssr: false })
export const Popup: React.ComponentType<PopupProps> = dynamic(
() => import('@typebot.io/react/src/Popup'),
{
ssr: false,
}
)
export const Bubble: React.ComponentType<BubbleProps> = dynamic(
() => import('@typebot.io/react/src/Bubble'),
{
ssr: false,
}
)
export * from '@typebot.io/js'