Rocky_Mountain_Vending/.pnpm-store/v10/files/4f/3d77c05c8df139563ebc141d11f60e3d77040229e86841a90f57b0a132f87723f40299d70945b70b6f6f2eda6f64295500ddbaa56b14934b3c49dd466138d7
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

41 lines
822 B
Text

import { getCurrentScope, getClient } from './currentScopes.js';
/**
* Send user feedback to Sentry.
*/
function captureFeedback(
params,
hint = {},
scope = getCurrentScope(),
) {
const { message, name, email, url, source, associatedEventId, tags } = params;
const feedbackEvent = {
contexts: {
feedback: {
contact_email: email,
name,
message,
url,
source,
associated_event_id: associatedEventId,
},
},
type: 'feedback',
level: 'info',
tags,
};
const client = scope?.getClient() || getClient();
if (client) {
client.emit('beforeSendFeedback', feedbackEvent, hint);
}
const eventId = scope.captureEvent(feedbackEvent, hint);
return eventId;
}
export { captureFeedback };
//# sourceMappingURL=feedback.js.map