UNPKG

humanbehavior-js

Version:

SDK for HumanBehavior session and event recording

16 lines (14 loc) 483 B
import { HumanBehaviorTracker } from '../index.js'; import type { LoaderFunctionArgs } from '@remix-run/node'; // Remix-specific loader helper export function createHumanBehaviorLoader() { return async ({ request }: LoaderFunctionArgs) => { return { ENV: { HUMANBEHAVIOR_API_KEY: process.env.HUMANBEHAVIOR_API_KEY, }, }; }; } // Re-export React components for convenience export { HumanBehaviorProvider, useHumanBehavior } from '../react/index.js';