Popup Swap

Embedding on Next.js

To show the embed on every page, include the script in a header component that is rendered on every page.

Use the next Script component:

import Script from 'next/script'
export default function Page() {
  return (
      <Script hiswap async type="module" src="https://plugins.hiswap.one/embed.js?id={id}}&buttonColor={buttonColor}}&iconColor={iconColor}" />

For more info check out the Next.js docs https://nextjs.org/docs/basic-features/script (opens in a new tab)