import { NotificationColor, NotificationMessage } from 'lupine.components'; import { DemoStory } from '../demo/demo-types'; import { MessageBox, MessageBoxButtonProps } from './message-box'; import { Button, ButtonSize } from './button'; export const messageBoxDemo: DemoStory = { id: 'message-box-demo', text: 'MessageBox Demo', args: { title: 'System Alert', contentMinWidth: '300px', }, argTypes: { title: { control: 'text', description: 'Title of the MessageBox' }, contentMinWidth: { control: 'text', description: 'Minimum width of MessageBox' }, }, render: (args) => { return (

Test different button configurations for MessageBox.

); }, code: `import { MessageBox, MessageBoxButtonProps } from 'lupine.components/components/message-box'; // Quick Alert MessageBox.show({ title: 'System Alert', buttonType: MessageBoxButtonProps.Ok, children:
Operation completed successfully!
, handleClicked: (index, close) => { close(); } }); // Confirmation Dialog MessageBox.show({ title: 'Confirm Action', buttonType: MessageBoxButtonProps.OkCancel, children:
Are you sure you want to proceed?
, handleClicked: (index, close) => { if (index === 0) { console.log('User clicked OK'); } else { console.log('User clicked Cancel'); } close(); } }); `, };