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.0 KB
Raw Blame
import type { Meta, StoryObj } from '@storybook/react'

import { SettingSectionUnavailable } from './SettingSectionUnavailable'

type Story = StoryObj<typeof SettingSectionUnavailable>

const meta: Meta<typeof SettingSectionUnavailable> = {
    title: 'Scenes-App/Settings/SettingSectionUnavailable',
    component: SettingSectionUnavailable,
    parameters: { layout: 'fullscreen' },
}
export default meta

export const NotEnabled: Story = {
    args: {
        section: {
            id: 'organization-access-resolution',
            title: 'Access resolution preview',
            reason: 'not-enabled',
            fallback: { sectionId: 'organization-roles', label: 'Go to access control settings' },
        },
    },
}

export const AdminOnly: Story = {
    args: {
        section: {
            id: 'organization-access-resolution',
            title: 'Access resolution preview',
            reason: 'admin-only',
            fallback: { sectionId: 'organization-roles', label: 'Go to access control settings' },
        },
    },
}