'use client';
import React from 'react';
import { TipologicoProjetoShell } from '@waygest/vertical-app-kit';

/** Shim: ProjetoLayout do monólito → shell tipológico (sem menu ERP). */
export default function ProjetoLayout(props: {
  projetoId: string;
  pageTitle?: string;
  titleSection?: string;
  breadcrumbItems?: { title: string; path?: string }[];
  children: React.ReactNode;
  [key: string]: unknown;
}) {
  const title = props.pageTitle || props.titleSection || 'Projeto';
  return (
    <TipologicoProjetoShell
      projetoId={String(props.projetoId)}
      pageTitle={title}
      breadcrumbItems={props.breadcrumbItems}
    >
      {props.children}
    </TipologicoProjetoShell>
  );
}
