Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.1 KB
Raw Blame
import { Meta, StoryObj } from '@storybook/react'

import { BASE_LOADING_MESSAGES, CHRISTMAS_LOADING_MESSAGES, HALLOWEEN_LOADING_MESSAGES } from './EmptyStates'

const meta: Meta = {
    title: 'Scenes-App/Insights/Loading Messages',
    parameters: {
        layout: 'fullscreen',
        viewMode: 'story',
    },
}
export default meta

type Story = StoryObj<{}>

export const LoadingMessages: Story = {
    render: () => {
        return (
            <div className="flex flex-col gap-2">
                <ul>
                    {BASE_LOADING_MESSAGES.map((message, idx) => (
                        <li key={idx}>{message}</li>
                    ))}
                </ul>
                <ul>
                    {CHRISTMAS_LOADING_MESSAGES.map((message, idx) => (
                        <li key={idx}>{message}</li>
                    ))}
                </ul>
                <ul>
                    {HALLOWEEN_LOADING_MESSAGES.map((message, idx) => (
                        <li key={idx}>{message}</li>
                    ))}
                </ul>
            </div>
        )
    },
}