<DualActionButton
label="Primary"
onClick={() => console.log('Main Action clicked')}
>
<MenuItem onClick={() => console.log('Sub Action 1 clicked')}>Action 1</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 2 clicked')}>Action 2</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 3 clicked')}>Action 3</MenuItem>
</DualActionButton>
<br />
<br />
<DualActionButton
color="secondary"
label="Secondary"
onClick={() => console.log('Main Action clicked')}
>
<MenuItem onClick={() => console.log('Sub Action 1 clicked')}>Action 1</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 2 clicked')}>Action 2</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 3 clicked')}>Action 3</MenuItem>
</DualActionButton>
<br />
<br />
<DualActionButton
label="Dual Action Button"
onClick={() => console.log('Main Action clicked')}
menuProps={{
maxHeight: '280px'
}}
>
<MenuItem onClick={() => console.log('Sub Action 1 clicked')}>Action 1</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 2 clicked')}>Action 2</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 3 clicked')}>Action 3</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 1 clicked')}>Action 1</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 2 clicked')}>Action 2</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 3 clicked')}>Action 3</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 1 clicked')}>Action 1</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 2 clicked')}>Action 2</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 3 clicked')}>Action 3</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 1 clicked')}>Action 1</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 2 clicked')}>Action 2</MenuItem>
<MenuItem onClick={() => console.log('Sub Action 3 clicked')}>Action 3</MenuItem>
</DualActionButton>