2
0
Files
bot/packages/embeds/nextjs/src/index.ts

30 lines
629 B
TypeScript
Raw Normal View History

import type {
BotProps,
PopupProps,
BubbleProps,
} from '@typebot.io/js/dist/index'
2023-07-15 12:26:12 +02:00
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 })
2023-07-15 12:26:12 +02:00
export const Popup: React.ComponentType<PopupProps> = dynamic(
() => import('@typebot.io/react/src/Popup'),
{
ssr: false,
}
)
2023-07-15 12:26:12 +02:00
export const Bubble: React.ComponentType<BubbleProps> = dynamic(
() => import('@typebot.io/react/src/Bubble'),
{
ssr: false,
}
)
2023-07-15 12:26:12 +02:00
export * from '@typebot.io/js'