Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

304 B
Raw Blame
import { useSyncExternalStore } from "react";

const subscribeToPlatform = () => () => undefined;
const getIsMac = () => navigator.userAgent.includes("Mac");
const getServerIsMac = () => false;

export function useIsMac() {
  return useSyncExternalStore(subscribeToPlatform, getIsMac, getServerIsMac);
}