Files
gestion_projet/src/components/PageHeader.tsx
T
Mathew b054e36df0 Panel admin, planning, tags, suivi du temps, thèmes clair/sombre
- Admin: création/suppression de comptes + rôles via Edge Function sécurisée
- Config Supabase intégrée au build (.env), écran Setup supprimé
- Page Planning (vue mois/semaine)
- Tags "jobs" sur les tâches + filtres (membre / tag)
- Suivi du temps par tâche, total par jalon
- Toasts + confirmations in-app (fini alert/confirm natifs)
- Thème Notion clair + mode sombre (accent monochrome, bascule persistée)
- .env suivi par git (public uniquement) pour synchro multi-machines

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 09:51:40 +02:00

22 lines
537 B
TypeScript

import { ReactNode } from 'react'
export default function PageHeader({
title,
subtitle,
children
}: {
title: string
subtitle?: string
children?: ReactNode
}): JSX.Element {
return (
<header className="flex items-center justify-between border-b border-border px-6 py-4">
<div>
<h1 className="text-lg font-semibold text-ink">{title}</h1>
{subtitle && <p className="text-sm text-muted">{subtitle}</p>}
</div>
<div className="flex items-center gap-2">{children}</div>
</header>
)
}