import { Delete as DeleteIcon, Save as SaveIcon } from '@mui/icons-material'; import type { Meta, StoryObj } from '@storybook/react'; import { IconButton } from '../..'; import { ConfirmationTooltip } from './ConfirmationTooltip'; const meta: Meta = { component: ConfirmationTooltip }; export default meta; type Story = StoryObj; export const Default: Story = { args: { children: ({ toggleTooltip }) => ( } onClick={toggleTooltip} /> ), labels: { cancel: 'Cancel', confirm: { label: 'Save' } }, onConfirm: () => undefined } }; export const WithConfirmVariant: Story = { args: { children: ({ toggleTooltip }) => ( } onClick={toggleTooltip} /> ), confirmVariant: 'error', labels: { cancel: 'Cancel', confirm: { label: 'Delete' } }, onConfirm: () => undefined } }; export const WithSecondaryLabel: Story = { args: { children: ({ toggleTooltip }) => ( } onClick={toggleTooltip} /> ), confirmVariant: 'error', labels: { cancel: 'Cancel', confirm: { label: 'Delete', secondaryLabel: 'This action will delete the current item' } }, onConfirm: () => undefined } };