import React from 'react';
import { Head } from '@inertiajs/react';
import AuthUser from '@/modules/auth/auth-user';
import FlashMessages from '@/modules/flash/flash-messages';
import Footer from '@/pages/home/partials/Footer.jsx';

interface PrivacyProps {
    content: string;
    title: string;
}

const Privacy: React.FC<PrivacyProps> = ({ content, title }) => {
    return (
        <div className="min-h-[100vh] bg-neutral-50 dark:bg-black">
            <Head title={title} />
            
            <div className="container mx-auto px-4 py-8">
                <div className="max-w-4xl mx-auto">
                    <div className="bg-white dark:bg-neutral-900 rounded-lg shadow-lg p-8">
                        <div 
                            className="max-w-none"
                            dangerouslySetInnerHTML={{ __html: content }}
                        />
                    </div>
                </div>
            </div>
            
            <Footer />
            <FlashMessages />
            <AuthUser />
        </div>
    );
};

export default Privacy;