import type { Meta, StoryObj } from '@storybook/react';
import { ConfirmationStep } from './ConfirmationStep';
import { Navigation } from '../../organisms/Navigation';
import Box from '@mui/material/Box';
// ─── Helpers ─────────────────────────────────────────────────────────────────
const FALogo = () => (
);
const nav = (
}
items={[
{ label: 'FAQ', href: '/faq' },
{ label: 'Contact Us', href: '/contact' },
]}
/>
);
// ─── Meta ────────────────────────────────────────────────────────────────────
const meta: Meta = {
title: 'Pages/ConfirmationStep',
component: ConfirmationStep,
tags: ['autodocs'],
parameters: {
layout: 'fullscreen',
},
};
export default meta;
type Story = StoryObj;
// ─── At-need (default) ──────────────────────────────────────────────────────
/** At-need confirmation — arranger will call */
export const Default: Story = {
render: () => (
alert('View plan')}
nextSteps={[
{ label: 'Start detailed arrangement', onClick: () => alert('Arrangement') },
{ label: 'Go to dashboard', onClick: () => alert('Dashboard') },
]}
navigation={nav}
/>
),
};
// ─── Pre-planning ───────────────────────────────────────────────────────────
/** Pre-planning confirmation — plan saved, return anytime */
export const PrePlanning: Story = {
render: () => (
alert('View plan')}
nextSteps={[{ label: 'Go to dashboard', onClick: () => alert('Dashboard') }]}
navigation={nav}
/>
),
};
// ─── Minimal ────────────────────────────────────────────────────────────────
/** Minimal — no next steps, no view plan */
export const Minimal: Story = {
render: () => ,
};