{"_id":"@0x1luxa/hooks","_rev":"10-81bc6be7db19ae15a96b32e64c577283","name":"@0x1luxa/hooks","dist-tags":{"latest":"0.1.11"},"versions":{"0.1.1":{"name":"@0x1luxa/hooks","version":"0.1.1","keywords":["hooks","react","web3"],"author":{"name":"0x1luxa"},"license":"MIT","_id":"@0x1luxa/hooks@0.1.1","maintainers":[{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"}],"dist":{"shasum":"7d134015d86f92133f325a1463cfe89d0826fb0e","tarball":"https://registry.npmjs.org/@0x1luxa/hooks/-/hooks-0.1.1.tgz","fileCount":3,"integrity":"sha512-jjwP/5vQD4OiOhm+OFTl3W+oMUo5jMUei4oJhP3Lw+/Dl0zshCvNi6x+4IpA/il4P8tPFU++cyOYLdmyAMPT9w==","signatures":[{"sig":"MEYCIQDFu1vGGtizHWE9IcVNYSPzTUk5J0+e6Sk8/1ViUzOPwAIhAL5SVRiCe0i4X8bArXT+0VUszKbivM15WyEbwUa8Ix4D","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":705},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"421d99eb1e0b432ae21d1e677f7d273ba0129053","scripts":{"build":"tsc","publish":"npm run build && npm version patch && npm publish","prepublishOnly":"npm run build"},"_npmUser":{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"},"_npmVersion":"10.8.2","description":"A collection of hooks for React","directories":{},"_nodeVersion":"18.20.7","dependencies":{"viem":"^2.23.12","dayjs":"^1.11.13","react":"^19.0.0","bignumber.js":"^9.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5","@types/node":"^22"},"_npmOperationalInternal":{"tmp":"tmp/hooks_0.1.1_1742381035822_0.17061031061811383","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@0x1luxa/hooks","version":"0.1.3","keywords":["hooks","react","web3"],"author":{"name":"0x1luxa"},"license":"MIT","_id":"@0x1luxa/hooks@0.1.3","maintainers":[{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"}],"dist":{"shasum":"793fb2d53f1de404d99bbb744c291b2adbfc670a","tarball":"https://registry.npmjs.org/@0x1luxa/hooks/-/hooks-0.1.3.tgz","fileCount":3,"integrity":"sha512-wiK2ztzOPSgeX2QYR2PealQC5EeQBPyjJYKH9TQ+zJAlSj07jRe7yaN4THoJ7cidFfxWchYpQWAUdPAUY0PPAg==","signatures":[{"sig":"MEUCIGH0m6ihMU8w7x6iDC9ZvhQAAX2gj+IzTMlfmTPq+YijAiEAwhaGKeuIE99QTvDgdh01FB+bH2zg8CFH6GQr/nT+zmQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":637},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"e7b40a46dea7b287915aec85e11d05ce22902d9b","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"_npmUser":{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"},"_npmVersion":"10.8.2","description":"A collection of hooks for React","directories":{},"_nodeVersion":"18.20.7","dependencies":{"viem":"^2.23.12","dayjs":"^1.11.13","react":"^19.0.0","bignumber.js":"^9.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5","@types/node":"^22"},"_npmOperationalInternal":{"tmp":"tmp/hooks_0.1.3_1742381576379_0.8694480004657921","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@0x1luxa/hooks","version":"0.1.4","keywords":["hooks","react","web3"],"author":{"name":"0x1luxa"},"license":"MIT","_id":"@0x1luxa/hooks@0.1.4","maintainers":[{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"}],"dist":{"shasum":"6a1df993f506e978b18ec7bd98f199a4fafee1b9","tarball":"https://registry.npmjs.org/@0x1luxa/hooks/-/hooks-0.1.4.tgz","fileCount":25,"integrity":"sha512-KjYGrQlmxYpZf2lSfRIYe66x1wnqGUxPL0c/5lfdYbrAPvnreOn0YdY2HY6zLcmSOMJgNKzDCV/NP3Ve3yw93A==","signatures":[{"sig":"MEUCIDFX3/XiS0VeqltqJEp8m7hatpV1oy4qgMd4zcdxgRORAiEAwtmRLOshPiXEsCQ9xj31TP7nBVFGHr5NsaGKhqArAeo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61378},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"767d67021e2ae6382977bf4751cce4e1fbf2b1e8","scripts":{"build":"tsc","patch-push":"npm version patch && git push --tags","prepublishOnly":"npm run build"},"_npmUser":{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"},"_npmVersion":"10.8.2","description":"A collection of hooks for React","directories":{},"_nodeVersion":"18.20.7","dependencies":{"viem":"^2.23.12","dayjs":"^1.11.13","react":"^19.0.0","wagmi":"^2.14.15","bignumber.js":"^9.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5","@types/node":"^22","@types/react":"^19.0.11"},"_npmOperationalInternal":{"tmp":"tmp/hooks_0.1.4_1742383690302_0.5009379721619098","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@0x1luxa/hooks","version":"0.1.5","keywords":["hooks","react","web3"],"author":{"name":"0x1luxa"},"license":"MIT","_id":"@0x1luxa/hooks@0.1.5","maintainers":[{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"}],"dist":{"shasum":"3337db86a5cc6e908ffeee3174523f1697a8c552","tarball":"https://registry.npmjs.org/@0x1luxa/hooks/-/hooks-0.1.5.tgz","fileCount":26,"integrity":"sha512-J9NuxaxpBI+U9ZpGYCTPNanTzv8tTuaG/Wm2QqAp6OBg/S+XMfHMnNssHQbTWDP1IaWHNcj0ofHpfrDf3YCGeg==","signatures":[{"sig":"MEUCIQCaraue9vR/ImG/tTDjX5W9riyrZ9w8LqgTCWox01sQ1QIgKFD4i9bhsqd/mi3CGjbOAfQRp5Y3Nyn9U54MARY7YWM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":65942},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"22d3634a3decc6e66aa7f8ceee682d3951408e00","scripts":{"build":"tsc","patch-push":"npm version patch && git push --tags","prepublishOnly":"npm run build"},"_npmUser":{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"},"_npmVersion":"10.8.2","description":"A collection of hooks for React","directories":{},"_nodeVersion":"18.20.7","dependencies":{"viem":"^2.23.12","dayjs":"^1.11.13","react":"^19.0.0","wagmi":"^2.14.15","bignumber.js":"^9.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5","@types/node":"^22","@types/react":"^19.0.11"},"_npmOperationalInternal":{"tmp":"tmp/hooks_0.1.5_1742384348867_0.08414183774240547","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@0x1luxa/hooks","version":"0.1.6","keywords":["hooks","react","web3"],"author":{"name":"0x1luxa"},"license":"MIT","_id":"@0x1luxa/hooks@0.1.6","maintainers":[{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"}],"dist":{"shasum":"7df8d50ec1b8d4170520e82429ad4ebdd0311b0c","tarball":"https://registry.npmjs.org/@0x1luxa/hooks/-/hooks-0.1.6.tgz","fileCount":2,"integrity":"sha512-FsZPeW9JKYO54HJE4CwiYZT+yriS9yexlNlAN3iaTpQWGT7WBOmLDmqfUiryno/bqbFJUOQIgAJt2xSFL3wFng==","signatures":[{"sig":"MEUCIQCRRkp6xBvOgYf/opaGyRTx76KPkKSEqe+xcTLcMpcAqgIgI8Ijko4FovTAfkkW39J0A1bic6/LK1u4h5wiT0yVsUU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5172},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"4df42789353a5eb85089a6aadf7ab28a7b08f355","scripts":{"build":"tsc","patch-push":"npm version patch && git push --tags","prepublishOnly":"npm run build"},"_npmUser":{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"},"_npmVersion":"10.9.2","description":"A collection of hooks for React","directories":{},"_nodeVersion":"22.14.0","dependencies":{"tsup":"^8.4.0","viem":"^2.23.12","dayjs":"^1.11.13","react":"^19.0.0","wagmi":"^2.14.15","bignumber.js":"^9.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5","@types/node":"^22","@types/react":"^19.0.11"},"_npmOperationalInternal":{"tmp":"tmp/hooks_0.1.6_1742398526553_0.6353263172052954","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@0x1luxa/hooks","version":"0.1.7","keywords":["hooks","react","web3"],"author":{"name":"0x1luxa"},"license":"MIT","_id":"@0x1luxa/hooks@0.1.7","maintainers":[{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"}],"dist":{"shasum":"07ba246eaf640a46a2c93912a4afadf5e2d7e63c","tarball":"https://registry.npmjs.org/@0x1luxa/hooks/-/hooks-0.1.7.tgz","fileCount":2,"integrity":"sha512-nN53wIgJ/VtDAennszw++qOml77/C/mOqARmPeubgpZXeeEflHeT2Up4hfD0ASn36cSKlGjh7klA2AkZWfTouw==","signatures":[{"sig":"MEYCIQDdqzMmHKC4Of+fgNLtrIG4c7WBneQ4MOP0GlpgawKePQIhAPQAApc6/eQKT4NMrF4ap8VaNXtBePmSltptCh95lGFU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5172},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"bef9efd4ad038b3964b4fa175911e335e9867589","scripts":{"build":"tsc","patch-push":"npm version patch && git push --tags","prepublishOnly":"npm run build"},"_npmUser":{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"},"_npmVersion":"10.9.2","description":"A collection of hooks for React","directories":{},"_nodeVersion":"22.14.0","dependencies":{"tsup":"^8.4.0","viem":"^2.23.12","dayjs":"^1.11.13","react":"^19.0.0","wagmi":"^2.14.15","bignumber.js":"^9.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5","@types/node":"^22","@types/react":"^19.0.11"},"_npmOperationalInternal":{"tmp":"tmp/hooks_0.1.7_1742398831048_0.764706578166445","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@0x1luxa/hooks","version":"0.1.8","keywords":["hooks","react","web3"],"author":{"name":"0x1luxa"},"license":"MIT","_id":"@0x1luxa/hooks@0.1.8","maintainers":[{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"}],"dist":{"shasum":"f952f40b401b26bf8fa276dbacecd15dea4767ee","tarball":"https://registry.npmjs.org/@0x1luxa/hooks/-/hooks-0.1.8.tgz","fileCount":4,"integrity":"sha512-CORL8ilIHlOO/6etqb7u4KzOLqvcK2SiWL1r7eXUvR5lDD3cG6ekYQ3EUhc6b8Ez9Zbe9FwdykGrgHq4uc4CgQ==","signatures":[{"sig":"MEYCIQCdeZbTm7MZRxPnDgOJnbYH7JZL38sBqur0i1cvlkBXhAIhAPXMxlKTWiTNcB0Hso3QYW9ZIkobnwXIR4iU3Vgt7DTY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57872},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"cae962c4ea12e08f8051909c2a9eea91bc3f66cd","scripts":{"build":"tsup","patch-push":"npm version patch && git push --tags"},"_npmUser":{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"},"_npmVersion":"10.9.2","description":"A collection of hooks for React","directories":{},"_nodeVersion":"22.14.0","dependencies":{"tsup":"^8.4.0","viem":"^2.23.12","dayjs":"^1.11.13","react":"^19.0.0","wagmi":"^2.14.15","bignumber.js":"^9.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5","@types/node":"^22","@types/react":"^19.0.11"},"_npmOperationalInternal":{"tmp":"tmp/hooks_0.1.8_1742399109148_0.24770298898104381","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@0x1luxa/hooks","version":"0.1.9","keywords":["hooks","react","web3"],"author":{"name":"0x1luxa"},"license":"MIT","_id":"@0x1luxa/hooks@0.1.9","maintainers":[{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"}],"dist":{"shasum":"d1e00b75404a3e40873e918a96cb47087bbf715a","tarball":"https://registry.npmjs.org/@0x1luxa/hooks/-/hooks-0.1.9.tgz","fileCount":4,"integrity":"sha512-A/2QtJbMHWOEV3Q1R0Jjf5VhPox2I3ZKBoHvo83Z/RSS5jP2AbxdIzVKrp8L504v1qUB1hcyfWXG1r3/bC9okA==","signatures":[{"sig":"MEYCIQDlu/5LkSRgheZCQ9b0Q9MQmERMtc+hCEB1gyHzeD0UNwIhAMOpPGbjDyT5GSh9hovM0RJZbQgwe1+W75dIspGbPD6/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57876},"main":"./dist/index.mjs","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","require":"./dist/index.mjs"}},"gitHead":"3f5ff3c76480c4099bfe10fcf868701c0b2ceb2a","scripts":{"build":"tsup","patch-push":"npm version patch && git push --tags"},"_npmUser":{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"},"_npmVersion":"10.9.2","description":"A collection of hooks for React","directories":{},"_nodeVersion":"22.14.0","dependencies":{"tsup":"^8.4.0","viem":"^2.23.12","dayjs":"^1.11.13","react":"^19.0.0","wagmi":"^2.14.15","bignumber.js":"^9.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5","@types/node":"^22","@types/react":"^19.0.11"},"_npmOperationalInternal":{"tmp":"tmp/hooks_0.1.9_1742399664438_0.39692643460924093","host":"s3://npm-registry-packages-npm-production"}},"0.1.10":{"name":"@0x1luxa/hooks","version":"0.1.10","keywords":["hooks","react","web3"],"author":{"name":"0x1luxa"},"license":"MIT","_id":"@0x1luxa/hooks@0.1.10","maintainers":[{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"}],"dist":{"shasum":"ff873b710e5e357b775f841efe9134373a87df4e","tarball":"https://registry.npmjs.org/@0x1luxa/hooks/-/hooks-0.1.10.tgz","fileCount":4,"integrity":"sha512-mjYAk2b9sckxIcvkcgQvODUf8gq7liIvsX6Id+8MXTzRLOEiyet3uI0wdqECZjbG8iwlJqkEgOU+ob5q5ktHjQ==","signatures":[{"sig":"MEUCIQDOZD3wGcdzNzxYjdx/SZTO0kYV1X9CVTeOSRyP1MocCAIgGolE0c+eob3qGgR7Vj/YJSLkGyEfIzG38iyU3LNVyMA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57897},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"0678a18c21288de8b374156add69cd73166216d1","scripts":{"build":"tsup","patch-push":"npm version patch && git push --tags"},"_npmUser":{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"},"_npmVersion":"10.9.2","description":"A collection of hooks for React","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"tsup":"^8.4.0","viem":"^2.23.12","dayjs":"^1.11.13","react":"^19.0.0","wagmi":"^2.14.15","bignumber.js":"^9.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5","@types/node":"^22","@types/react":"^19.0.11"},"_npmOperationalInternal":{"tmp":"tmp/hooks_0.1.10_1742401005566_0.6560674545426302","host":"s3://npm-registry-packages-npm-production"}},"0.1.11":{"name":"@0x1luxa/hooks","version":"0.1.11","type":"module","description":"A collection of hooks for React","sideEffects":false,"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","publishConfig":{"access":"public"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"patch-push":"npm version patch && git push --tags","build":"tsup"},"keywords":["hooks","react","web3"],"author":{"name":"0x1luxa"},"license":"MIT","devDependencies":{"@types/node":"^22","@types/react":"^19.0.11","typescript":"^5"},"dependencies":{"bignumber.js":"^9.1.2","dayjs":"^1.11.13","react":"^19.0.0","tsup":"^8.4.0","viem":"^2.23.12","wagmi":"^2.14.15"},"_id":"@0x1luxa/hooks@0.1.11","gitHead":"be14bc311e49c60257a2cb5da8be39bcbb0ee551","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-LoX2/6dq16II2ujpNvMymUSrtRkPsu9oH5joYGXd0+7IOAOcO4RRzEEbl9NcnG13PseANGRVbtc+Kj51CoeWdg==","shasum":"699977448bf646bbe9905a7c3d4dcdc96839557a","tarball":"https://registry.npmjs.org/@0x1luxa/hooks/-/hooks-0.1.11.tgz","fileCount":4,"unpackedSize":57917,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCzLrsGDOoGel2kcccbJwFtaJTt/0p8cbn7rq5zBdVO1wIhAOyjj2lNLs6biAoxX27ZPPdgjf5XZ6Wj6HapuUS85ERs"}]},"_npmUser":{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"},"directories":{},"maintainers":[{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hooks_0.1.11_1742403419100_0.08833026889023765"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-19T10:43:55.752Z","modified":"2025-03-19T16:56:59.449Z","0.1.1":"2025-03-19T10:43:55.995Z","0.1.3":"2025-03-19T10:52:56.561Z","0.1.4":"2025-03-19T11:28:10.474Z","0.1.5":"2025-03-19T11:39:09.177Z","0.1.6":"2025-03-19T15:35:26.744Z","0.1.7":"2025-03-19T15:40:31.220Z","0.1.8":"2025-03-19T15:45:09.353Z","0.1.9":"2025-03-19T15:54:24.677Z","0.1.10":"2025-03-19T16:16:45.765Z","0.1.11":"2025-03-19T16:56:59.278Z"},"author":{"name":"0x1luxa"},"license":"MIT","keywords":["hooks","react","web3"],"description":"A collection of hooks for React","maintainers":[{"name":"0x1luxa","email":"vylegzhanin.ilja@yandex.ru"}],"readme":"# @0x1luxa/hooks\n\nA collection of hooks for React, designed to simplify state management and interaction with web3.\n\n## Installation\n\nTo install the package, use npm or yarn:\n\n```bash\nnpm install @0x1luxa/hooks\n```\n\nor\n\n```bash\nyarn add @0x1luxa/hooks\n```\n\n## Usage\n\n### Common Hooks\n\n#### useClipboard\n\nA hook to copy text to the clipboard.\n\n**Example:**\n\n```typescript\nimport { useClipboard } from \"@0x1luxa/hooks\"\n\nconst Component = () => {\n  const [copy] = useClipboard()\n\n  return (\n    <button onClick={() => copy(\"Text to copy\")}>\n      Copy to Clipboard\n    </button>\n  )\n}\n```\n\n#### useDeviceWidth\n\nA hook to determine the device width and breakpoints.\n\n**Example:**\n\n```typescript\nimport { useDeviceWidth } from \"@0x1luxa/hooks\"\n\nconst Component = () => {\n  const { isBelowDesktop, isTablet, isMobile } = useDeviceWidth()\n\n  return (\n    <div>\n      {isMobile && <p>Mobile View</p>}\n      {isTablet && <p>Tablet View</p>}\n      {isBelowDesktop && <p>Below Desktop View</p>}\n    </div>\n  )\n}\n```\n\n#### useDimensions\n\nA hook to get the dimensions of a DOM element.\n\n**Example:**\n\n```typescript\nimport { useDimensions } from \"@0x1luxa/hooks\"\nimport { useRef } from \"react\"\n\nconst Component = () => {\n  const ref = useRef<HTMLDivElement>(null)\n  const dimensions = useDimensions(ref)\n\n  return (\n    <div ref={ref}>\n      Width: {dimensions.width}, Height: {dimensions.height}\n    </div>\n  )\n}\n```\n\n#### useDisclosure\n\nA hook to manage the open/close state of a component.\n\n**Example:**\n\n```typescript\nimport { useDisclosure } from \"@0x1luxa/hooks\"\n\nconst Component = () => {\n  const [isOpen, { open, close, toggle }] = useDisclosure()\n\n  return (\n    <div>\n      <button onClick={toggle}>Toggle</button>\n      {isOpen && <p>Content is open</p>}\n    </div>\n  )\n}\n```\n\n#### useLocalStorage\n\nA hook to manage state with local storage.\n\n**Example:**\n\n```typescript\nimport { useLocalStorage } from \"@0x1luxa/hooks\"\n\nconst Component = () => {\n  const [value, setValue] = useLocalStorage(\"key\", \"default\")\n\n  return (\n    <div>\n      <input\n        value={value}\n        onChange={(e) => setValue(e.target.value)}\n      />\n    </div>\n  )\n}\n```\n\n#### usePagination\n\nA hook to handle pagination logic.\n\n**Example:**\n\n```typescript\nimport { usePagination } from \"@0x1luxa/hooks\"\n\nconst Component = () => {\n  const { currentPage, totalPages, setPage } = usePagination(10, 100)\n\n  return (\n    <div>\n      <button onClick={() => setPage(currentPage - 1)}>\n        Previous\n      </button>\n      <span>\n        Page {currentPage} of {totalPages}\n      </span>\n      <button onClick={() => setPage(currentPage + 1)}>Next</button>\n    </div>\n  )\n}\n```\n\n#### useToggleBooleanState\n\nA hook to toggle a boolean state every 1.5 seconds when data is available.\n\n**Example:**\n\n```typescript\nimport { useToggleEvery1_5Sec } from \"@0x1luxa/hooks\"\n\nconst Component = ({ data }) => {\n  const [toggle, resetToggle] = useToggleEvery1_5Sec(data)\n\n  return (\n    <div>\n      <p>Toggle is {toggle ? \"ON\" : \"OFF\"}</p>\n      <button onClick={resetToggle}>Reset</button>\n    </div>\n  )\n}\n```\n\n### Web3 Hooks\n\n#### useApproveToken\n\nA hook to handle token approval transactions.\n\n**Example:**\n\n```typescript\nimport { useApproveToken } from \"@0x1luxa/hooks\"\n\nconst Component = () => {\n  const { approve, isLoading } = useApproveToken({\n    tokenAddress: \"0xTokenAddress\",\n    spenderAddress: \"0xSpenderAddress\",\n    amount: BigInt(1000),\n  })\n\n  return (\n    <button onClick={approve} disabled={isLoading}>\n      Approve Token\n    </button>\n  )\n}\n```\n\n#### useTokenBalance\n\nA hook to get the balance of a token.\n\n**Example:**\n\n```typescript\nimport { useTokenBalance } from \"@0x1luxa/hooks\"\n\nconst Component = () => {\n  const balance = useTokenBalance(\"0xTokenAddress\")\n\n  return <div>Token Balance: {balance}</div>\n}\n```\n\n## Scripts\n\n- **build**: Compiles the TypeScript code to JavaScript.\n- **patch-push**: Increments the patch version and pushes the tags to the repository.\n\n## Development\n\nTo build the project, run:\n\n```bash\nnpm run build\n```\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Author\n\n0x1luxa\n\n## Keywords\n\n- hooks\n- react\n- web3\n","readmeFilename":"README.md"}