import * as React from "react";
import { type LucideIcon } from "lucide-react";

interface ToolLayoutProps {
  icon: LucideIcon;
  title: string;
  description: string;
  children: React.ReactNode;
}

export function ToolLayout({ icon: Icon, title, description, children }: ToolLayoutProps) {
  return (
    <div className="max-w-4xl mx-auto px-6 py-8">
      {/* Header */}
      <div className="mb-6 animate-fade-up">
        <div className="flex items-center gap-3 mb-1.5">
          <div className="h-8 w-8 rounded-lg bg-white/8 border border-white/10 flex items-center justify-center">
            <Icon className="h-4 w-4 text-white/80" />
          </div>
          <h1 className="text-xl font-semibold">{title}</h1>
        </div>
        <p className="text-sm text-muted-foreground ml-11">{description}</p>
      </div>
      <div className="animate-fade-up" style={{ animationDelay: "50ms" }}>
        {children}
      </div>
    </div>
  );
}
