import { useEffect } from 'react' import { ScopeDecorator } from './decorators/scope' import { useLocalCompileContext } from '@/shared/context/local-compile-context' import { PdfPreviewMessages } from '@/features/pdf-preview/components/pdf-preview-messages' import CompileTimeWarning from '@/features/pdf-preview/components/compile-time-warning' import { CompileTimeoutChangingSoon } from '@/features/pdf-preview/components/compile-timeout-changing-soon' import { CompileTimeoutWarning } from '@/features/pdf-preview/components/compile-timeout-warning' export default { title: 'Editor / PDF Preview / Messages', component: PdfPreviewMessages, decorators: [ ScopeDecorator, (Story: any) => (
), ], } export const CompileTime = () => { const { setShowCompileTimeWarning } = useLocalCompileContext() useEffect(() => { setShowCompileTimeWarning(true) }, [setShowCompileTimeWarning]) return } export const CompileTimeoutChangingSoonNotProjectOwner = (args: any) => { return } CompileTimeoutChangingSoonNotProjectOwner.argTypes = { handleDismissChangingSoon: { action: 'dismiss changing soon' }, } export const CompileTimeoutChangingSoonProjectOwner = (args: any) => { return } CompileTimeoutChangingSoonProjectOwner.argTypes = { handleDismissChangingSoon: { action: 'dismiss changing soon' }, } export const CompileTimeoutWarningActive = (args: any) => { return } CompileTimeoutWarningActive.argTypes = { handleDismissWarning: { action: 'dismiss warning' }, } export const CompileTimeoutWarningChanging = (args: any) => { return } CompileTimeoutWarningChanging.argTypes = { handleDismissWarning: { action: 'dismiss warning' }, }