23 lines
766 B
JavaScript
23 lines
766 B
JavaScript
import React/*, {useState}*/ from 'react';
|
|
|
|
export default function Create() {
|
|
// const [pending, setPending] = useState([])
|
|
|
|
// for (const [key, value] of Object.entries(pending))
|
|
// console.log("pending ", key, value);
|
|
|
|
// function sendRequest(reject_uuid) {
|
|
// setPending( // Replace the old array
|
|
// [ // with a new array consisting of:
|
|
// ...pending, // - all the old items
|
|
// { uuid: reject_uuid } // - and a new item at the end
|
|
// ]
|
|
// )
|
|
// }
|
|
|
|
// return <button className="action" onClick={() => sendRequest(uuid) }>
|
|
// Reject
|
|
// </button>
|
|
return <button className='game-action create'>Create</button>
|
|
}
|