import { HydratedIsland } from '@/components/HydratedIsland';
import { ThreadView } from './ThreadView';
import type { Locale } from '@/lib/i18n';

interface Props {
  locale: Locale;
  threadId: string;
  currentUserId: string;
  threadTitle?: string | null;
}

export function ThreadViewIsland({ locale, threadId, currentUserId, threadTitle }: Props) {
  return (
    <HydratedIsland locale={locale}>
      <ThreadView threadId={threadId} currentUserId={currentUserId} threadTitle={threadTitle} />
    </HydratedIsland>
  );
}
