{"_id":"@am-hooks/use-confirm","_rev":"1-3128da439edeb67ecb34a98e6a28f4eb","name":"@am-hooks/use-confirm","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@am-hooks/use-confirm","version":"1.0.0","description":"When the user clicks the delete button, show the message before firing the event","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dorothy7964/am-hooks.git"},"keywords":["window.confirm"],"author":{"name":"wooami"},"license":"MIT","bugs":{"url":"https://github.com/dorothy7964/am-hooks/issues"},"homepage":"https://github.com/dorothy7964/am-hooks#readme","_id":"@am-hooks/use-confirm@1.0.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-kEJWk3v8vCblGGKXq1wZrwlY0xjGpcWVW4yQ+SslmBilqwu/H5TI44DoKhsPDyXNENOhA9rOCupqAfryUYZ0ow==","shasum":"d49840adbc2324c3e47c27d3b73434185bff1529","tarball":"https://registry.npmjs.org/@am-hooks/use-confirm/-/use-confirm-1.0.0.tgz","fileCount":4,"unpackedSize":1733,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZ+4/CRA9TVsSAnZWagAAJZYP/RpMtI2NRoUZIsfVw9fA\nB9zrzGdXvhGZ61kgpwFShlYm9z9V32uzTSmfcAEBALbGpe8EML4lEcQNQvH0\nnGPQD8+lSLenzwykjhYNtZeWrIH+26iR101CD6D0st+t4YYhdoW31ixMSLFF\nJlXn3BYOk2t5fJn8qdirKtSBetxqjj/YAEF9SrIo7PK62oi06C6L8YiQW9fk\nF3i3bVa1K1oACXxsn6fjEqxI5pRtkQWVEePS1D7az0Tbxg7lzXcuOUynfE4R\nA+R/UWk27uDxuS1U13/S7/VkCxYegyZ2udTfR3E65ESLlIGYLOMWiurW7icN\nkMrOvFXmmawr8TFDGIUSNYUn1v7m3IEMmNdE4EqKjhocWMQYZXjhswv2kiq9\n5MBhr9Lyq36HBqvzPtbLQAluJnpcBwA63EOfMOzOmseupmX5LDMubvl7kLym\nJAOtsW0vAuCMBExD/W9K4PXknrcTXkdZkx2pUD4uxJnH712j+mUJScVdq7Nh\nSEFJAzB8eXYqFjTZNK1de0gNn/xh2xjMYD8Psi7YHQGn4/xEjPoi9q3fci3L\n9iSvht5Sa+Op7b6Ca3Qitr3karYYdyqjPUZQTTPKHF2mSmX+rHTqkZPXbbvo\n4QlWByvepNo/I6iHT5qJxNwQTpJhNWbiER40E57TVbed05ynqGiOWMbrfPJo\n7AQU\r\n=r/U0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAGooVWPN5whRkOzB5Ki35fomuVTG14VG9rSwe4Lb54QIhAJ5YuVOd2vFHlawqVoEcucF0H0PdqRKxWwvvoWXKC6XA"}]},"maintainers":[{"name":"wam-6577","email":"wam6577@gmail.com"}],"_npmUser":{"name":"wam-6577","email":"wam6577@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-confirm_1.0.0_1583869503466_0.1592042817236481"},"_hasShrinkwrap":false}},"time":{"created":"2020-03-10T19:45:03.219Z","1.0.0":"2020-03-10T19:45:03.571Z","modified":"2022-04-04T13:42:28.190Z"},"maintainers":[{"name":"wam-6577","email":"wam6577@gmail.com"}],"description":"When the user clicks the delete button, show the message before firing the event","homepage":"https://github.com/dorothy7964/am-hooks#readme","keywords":["window.confirm"],"repository":{"type":"git","url":"git+https://github.com/dorothy7964/am-hooks.git"},"author":{"name":"wooami"},"bugs":{"url":"https://github.com/dorothy7964/am-hooks/issues"},"license":"MIT","readme":"# useConfirm\r\n 사용자가 삭제 버튼을 클릭하는 작업을 하면 이벤트를 실행하기 전 메시지 보여주기<br><br>\r\n\r\n## Installation\r\n\r\n#### yarn\r\n\r\n`yarn add @am-hooks/use-confirm`\r\n\r\n#### npm\r\n\r\n`npm i @am-hooks/use-confirm` <br><br>\r\n\r\n## Usage\r\n\r\n```js\r\nimport useConfirm from \"@am-hooks/use-confirm\";\r\n\r\nconst App = () => {\r\n  const deleteWorld = () => console.log(\"onConfirm\");\r\n  const abort = () => console.log(\"onCancel\");\r\n  const confirmDelete = useConfirm(\"Are you sure?\", deleteWorld, abort);\r\n\r\n  return <button onClick={confirmDelete}>Delete the world</button>;\r\n}\r\n```\r\n\r\n<br><br>\r\n","readmeFilename":"README.md"}