import { Meta, StoryObj } from '@storybook/react';

import CriticalCommsBanner from '.';

export default {
  component: CriticalCommsBanner,
  title: 'Feedback/CriticalCommsBanner',
  tags: ['autodocs'],
} satisfies Meta<typeof CriticalCommsBanner>;

type Story = StoryObj<typeof CriticalCommsBanner>;

export const Basic: Story = {
  args: {
    title: 'Your account is overdrawn',
    subtitle: 'Add money within the next 30 days',
    action: { label: 'Take action', href: 'https://wise.com' },
  },
};
