"use client";
import { jsx } from 'react/jsx-runtime';
import { lazy } from 'react';
import { ComposedRoute } from '@btst/stack/client/components';
import { DefaultError } from '../shared/default-error.mjs';
import { BoardSkeleton } from '../loading/board-skeleton.mjs';
import { NotFoundPage } from './404-page.mjs';

const BoardPage = lazy(
  () => import('./board-page.internal.mjs').then((m) => ({
    default: m.BoardPage
  }))
);
function BoardPageComponent({ boardId }) {
  return /* @__PURE__ */ jsx(
    ComposedRoute,
    {
      path: `/kanban/${boardId}`,
      PageComponent: BoardPage,
      ErrorComponent: DefaultError,
      LoadingComponent: BoardSkeleton,
      NotFoundComponent: NotFoundPage,
      props: { boardId },
      onError: (error) => console.error("BoardPage error:", error)
    }
  );
}

export { BoardPageComponent };
