import { CSPContext } from "./csp-context.jsx";
/**
 * Provides a Content Security Policy (CSP) nonce that Base UI components
 * attach to inline `<style>` and `<script>` tags.
 *
 * Solid 2 uses the context value itself as the provider component (no
 * `.Provider`). The context value is a plain object with a getter so the
 * `nonce` accessor tracks `props.nonce` without a top-level reactive read.
 */
export function CSPProvider(props) {
  const contextValue = {
    nonce: () => props.nonce,
    disableStyleElements: () => props.disableStyleElements === true
  };
  return <CSPContext value={contextValue}>{props.children}</CSPContext>;
}
//# sourceMappingURL=csp-provider.jsx.map
