2026-07-29 08:29:29 +00:00
|
|
|
// Module ID: 494
|
|
|
|
|
// Function ID: 495
|
|
|
|
|
// Name: subscribe
|
|
|
|
|
// Dependencies: [19, 453]
|
|
|
|
|
// Exports: default
|
|
|
|
|
|
|
|
|
|
// Module 494 (subscribe)
|
2026-08-24 06:08:38 +00:00
|
|
|
import noop from "noop" /* 19 */;
|
|
|
|
|
import getColorScheme from "getColorScheme" /* 453 */;
|
2026-07-29 08:29:29 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
const useSyncExternalStore = noop.useSyncExternalStore;
|
2026-07-29 08:29:29 +00:00
|
|
|
function subscribe(onChange) {
|
|
|
|
|
_require = _require(453).addChangeListener(onChange);
|
|
|
|
|
return () => closure_0.remove();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function useColorScheme() {
|
2026-08-24 06:08:38 +00:00
|
|
|
return useSyncExternalStore(subscribe, getColorScheme.getColorScheme);
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|