// Copyright 2026 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { JSX } from 'react';

import type { Meta } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { DeleteMessagesConfirmationDialog } from './DeleteMessagesConfirmationDialog.dom.tsx';

const { i18n } = window.SignalContext;

export default {
  title: 'Components/DeleteMessagesConfirmationDialog',
} satisfies Meta;

export function Default(): JSX.Element {
  return (
    <DeleteMessagesConfirmationDialog
      i18n={i18n}
      onClose={action('onClose')}
      onDestroyMessages={action('onDestroyMessages')}
      areWeMember={false}
    />
  );
}

export function DefaultStillMember(): JSX.Element {
  return (
    <DeleteMessagesConfirmationDialog
      i18n={i18n}
      onClose={action('onClose')}
      onDestroyMessages={action('onDestroyMessages')}
      areWeMember
    />
  );
}
