overleaf/services/web/frontend/stories/pdf-preview-messages.stories.tsx

26 lines
812 B
TypeScript
Raw Normal View History

import { ScopeDecorator } from './decorators/scope'
import { PdfPreviewMessages } from '@/features/pdf-preview/components/pdf-preview-messages'
import { CompileTimeWarningUpgradePromptInner } from '@/features/pdf-preview/components/compile-time-warning-upgrade-prompt-inner'
export default {
title: 'Editor / PDF Preview / Messages',
component: PdfPreviewMessages,
decorators: [
ScopeDecorator,
(Story: any) => (
<div style={{ width: 800, position: 'relative' }}>
<PdfPreviewMessages>
<Story />
</PdfPreviewMessages>
</div>
),
],
}
export const CompileTimeoutWarningActive = (args: any) => {
return <CompileTimeWarningUpgradePromptInner {...args} />
}
CompileTimeoutWarningActive.argTypes = {
handleDismissWarning: { action: 'dismiss warning' },
}