diff --git a/README.md b/README.md index 14e28d22..ab69f1cf 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,7 @@ If you are using CSP rules for CSS files, you can pass `nonce` argument to the ` Show different images based on the current theme: -```jsx +```ts import Image from "next/image"; import { useMode } from "nextjs-darkmode/hooks"; diff --git a/lib/README.md b/lib/README.md index 14e28d22..ab69f1cf 100644 --- a/lib/README.md +++ b/lib/README.md @@ -220,7 +220,7 @@ If you are using CSP rules for CSS files, you can pass `nonce` argument to the ` Show different images based on the current theme: -```jsx +```ts import Image from "next/image"; import { useMode } from "nextjs-darkmode/hooks";