import { useState } from 'react' import { Button } from '@mui/material' import { Meta, StoryObj } from '@storybook/react' import ConfirmDialog from '..' import { ConfirmDialogProps } from '../types' const meta: Meta = { title: '@baseapp-frontend | designSystem/Dialogs/ConfirmDialog', component: ConfirmDialog, } export default meta type Story = StoryObj const ConfirmDialogTemplate = (args: any) => { const [open, setOpen] = useState(false) const handleClickOpen = () => { setOpen(true) } const handleClose = () => { setOpen(false) } const handleConfirm = () => { alert('Confirmed') handleClose() } return ( <> Confirm } /> ) } export const Default: Story = { render: (args) => , args: { title: 'Confirm Action', content: 'Are you sure you want to proceed with this action?', cancelText: 'Cancel', }, }