import { Settings } from 'lucide-react';
import { useParams } from 'react-router-dom';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';

export function RepoSettings() {
    const { repo_name } = useParams<{ repo_name: string }>();

    return (
        <div className="p-6">
            <div className="mb-6">
                <h2 className="text-lg font-semibold">Settings — {repo_name}</h2>
                <p className="text-sm text-muted-foreground">
                    Manage repository configuration.
                </p>
            </div>
            <Card>
                <CardHeader>
                    <CardTitle className="flex items-center gap-2">
                        <Settings className="h-5 w-5" />
                        Repository Settings
                    </CardTitle>
                    <CardDescription>
                        Configure branch protection, hooks, and access for {repo_name}.
                    </CardDescription>
                </CardHeader>
                <CardContent>
                    <div className="rounded-lg border border-dashed p-8 text-center text-muted-foreground">
                        <Settings className="h-10 w-10 mx-auto mb-3 opacity-50" />
                        <p className="font-medium">Coming soon</p>
                        <p className="text-sm mt-1">
                            Repository settings are not yet available.
                        </p>
                    </div>
                </CardContent>
            </Card>
        </div>
    );
}
