PageSourceSearch

https://electro-light2dark.vercel.app/_next/static/chunks/pages/hooks/useContext-9ce0895bc5d944e6.js

js electro-light2dark.vercel.app collected 2026-10-03 06:52:03 UTC 1,226 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[247],{5754:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hooks/useContext",function(){return r(980)}])},980:function(e,t,r){"use strict";r.r(t);var n=r(5893),a=r(7294),s=(0,a.createContext)("dark"),c=function(e){var t=e.currentTheme,r=e.click,c=e.darkMode;(0,a.useContext)(s);return(0,n.jsx)("div",{className:"".concat(c?"dark":""),children:(0,n.jsxs)("div",{className:"dark:bg-slate-600 rounded-md transition-all",children:[(0,n.jsx)("div",{className:"flex flex-row justify-center",children:(0,n.jsx)("button",{onClick:r,className:"bg-slate-600 text-white px-2 py-1 rounded-sm mt-2 dark:bg-white dark:text-gray-800",children:t})}),(0,n.jsx)("p",{className:"text-center mt-1 text-slate-600 dark:text-gray-200",children:"Click the dark/light button"})]})})};t.default=function(){var e=(0,a.useState)(!1),t=e[0],r=e[1],i=(0,a.useState)("Light"),d=i[0],u=i[1];return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.Provider,{value:"dark",children:(0,n.jsx)(c,{currentTheme:d,darkMode:t,click:function(){r(!t),"Light"===d?u("Dark"):"Dark"===d&&u("Light")}})})})}}},function(e){e.O(0,[774,888,179],(function(){return t=5754,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.