'use client';

import { createLazyComponent, LoadingFallback } from '../../components/lazy-wrapper';
import type { TreeRootProps } from './types';

export const LazyTree = createLazyComponent<TreeRootProps<unknown>>(
  () => import('./TreeRoot'),
  {
    displayName: 'LazyTree',
    fallback: <LoadingFallback minHeight={200} text="Loading tree…" />,
  },
);

export type { TreeRootProps };
