commerce-kit
Version:
19 lines (17 loc) • 700 B
TypeScript
/**
* Feedback session toolbar — side-effect entry.
*
* Importing `commerce-kit/feedback-toolbar` (or `commerce-kit/browser` for the
* combined entry) mounts a floating toolbar onto the page that lets reviewers
* leave click-anchored comments. Comments persist via YNS API endpoints,
* authenticated with the `better-auth` session cookie sent through
* `credentials: "include"`.
*
* Gated on `process.env.NEXT_PUBLIC_VERCEL_ENV === "preview"` — only Vercel
* preview deploys get the toolbar. Sandbox dev (env undefined) and production
* (env === "production") skip it.
*/
declare function mountFeedbackToolbar(): {
unmount: () => void;
} | null;
export { mountFeedbackToolbar };