2026-02-25 18:04:32 +01:00
|
|
|
'use client';
|
|
|
|
|
|
|
|
|
|
import * as React from 'react';
|
|
|
|
|
import { cn } from '@/lib/utils';
|
|
|
|
|
|
|
|
|
|
interface AppPageProps {
|
|
|
|
|
title: string;
|
|
|
|
|
description?: string;
|
|
|
|
|
children: React.ReactNode;
|
|
|
|
|
className?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function AppPage({ title, description, children, className }: AppPageProps) {
|
|
|
|
|
return (
|
2026-02-27 12:35:02 +01:00
|
|
|
<div className={cn("min-h-screen py-8", className)}>
|
|
|
|
|
<div className="max-w-7xl mx-auto px-8 space-y-6 animate-fade-in">
|
2026-02-25 18:04:32 +01:00
|
|
|
<div>
|
2026-02-27 12:35:02 +01:00
|
|
|
<h1 className="text-2xl font-bold mb-1">{title}</h1>
|
2026-02-25 18:04:32 +01:00
|
|
|
{description && (
|
2026-02-27 12:35:02 +01:00
|
|
|
<p className="text-sm text-muted-foreground">
|
2026-02-25 18:04:32 +01:00
|
|
|
{description}
|
|
|
|
|
</p>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
{children}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|