Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{(popupState) => (
<button color="primary">
Copy Schedule
</button>
<menu>
{[0, 1, 2, 3].map((index) => {
return (
<menuitem disabled="{"> {
console.log(index);
copySchedule(
AppStore.getCurrentScheduleIndex(),
index
);
popupState.close();
}}
></menuitem></menu>
{(popupState) => (
<menu>
{row[column.type].map(
(
action: Datasource,
actionId: React.Key
) => (
<menuitem> {
action.function();
popupState.close();
}}
>
</menuitem></menu>
{popupState => (
<button color="primary">
Open Menu
</button>
<menu>
<menuitem>Cake</menuitem>
<menuitem>Death</menuitem>
</menu>
)}