"use client";
'use strict';

const jsxRuntime = require('react/jsx-runtime');
const React = require('react');
const components = require('@btst/stack/client/components');
const defaultError = require('../shared/default-error.cjs');
const boardSkeleton = require('../loading/board-skeleton.cjs');
const _404Page = require('./404-page.cjs');

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

exports.BoardPageComponent = BoardPageComponent;
