Files
klz-cables.com/.pnpm-store/v10/files/bb/9a5c94b85fc62832c19ce457e3526bee4518b0369facb57956d06c774560714f486194c3b1b04833b4f8743d2510905e30cc4b4f235e4da326c51520ba4cbf
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

13 lines
503 B
Plaintext

import getDefaultNow from '../server/react-server/getDefaultNow.js';
import useConfig from './useConfig.js';
function useNow(options) {
if (options?.updateInterval != null) {
console.error("`useNow` doesn't support the `updateInterval` option in Server Components, the value will be ignored. If you need the value to update, you can convert the component to a Client Component.");
}
const config = useConfig('useNow');
return config.now ?? getDefaultNow();
}
export { useNow as default };