Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : agentilab-web8 * File : components/pages/Shell.tsx9 * Module : User Interface10 * Repository : https://git.spboucher.ai/agentilab-web11 * Project Website : Not specified12 * Created : 2026-12-0513 * Last Modified : 2026-12-0514 *15 * Author : Simon-Pierre Boucher16 * Position : Professor of Finance17 * Institution : Université du Québec en Outaouais (UQO)18 * Organization : SP Boucher19 * Website : https://spboucher.ai20 * Git : https://git.spboucher.ai21 *22 * Preferred Contact: contact@spboucher.ai23 * Development : dev@spboucher.ai24 * Support : support@spboucher.ai25 * Security/Admin : admin@spboucher.ai26 *27 * Copyright (c) 202628 * Simon-Pierre Boucher29 * All rights reserved where applicable. This file is governed by the30 * applicable project license, copyright notices and relevant law.31 * Existing third-party rights and notices remain unaffected.32 *33 * License : Proprietary34 *35 * Do not embed credentials, private keys, access tokens,36 * certificates or confidential personal information.37 *38 * =============================================================================39 * END OF SP BOUCHER SOURCE HEADER40 * =============================================================================41 */4243import type { ReactNode } from 'react';44import type { Locale } from '@/lib/i18n/config';45import { getCopy } from '@/lib/i18n/copy';46import type { RouteId } from '@/lib/i18n/routes';47import { Header } from '@/components/layout/Header';48import { Footer } from '@/components/layout/Footer';49import { JsonLd } from '@/components/marketing/blocks';50import { breadcrumbJsonLd } from '@/lib/seo/metadata';5152/** Gabarit commun : lien d’évitement, en-tête, contenu principal, pied de page. */53export function Shell({ locale, current, children }: { locale: Locale; current: RouteId | null; children: ReactNode }) {54 const copy = getCopy(locale);55 return (56 <>57 <a className="skip-link" href="#contenu">58 {copy.nav.skip}59 </a>60 <Header locale={locale} current={current} />61 <main id="contenu" tabIndex={-1}>62 {children}63 </main>64 <Footer locale={locale} />65 {current && current !== 'home' ? <JsonLd data={breadcrumbJsonLd(current, locale)} /> : null}66 </>67 );68}69