Skip to content

Page-level Integration

Use <DynamicButton> inside specific page components.

tsx
/* app/product/[id]/page.tsx */
export default function ProductPage() {
  return (
    <>
      <DynamicButton pageType="product" />
      <ProductDetails />
    </>
  );
}

This ensures the "Share" button only appears when the user is actually viewing a product.

Next Steps

Released under the MIT License.