'use client';

import React from 'react';
import { SSRProvider } from 'react-aria';

/**
 * React Aria relies on an SSR id provider for deterministic ids between
 * server-rendered HTML and client hydration. Without this, you can get
 * hydration mismatch warnings for `id`/`htmlFor` attributes.
 */
export function KeystoneSSRProvider(props: { children: React.ReactNode }) {
  return <SSRProvider>{props.children}</SSRProvider>;
}

