Files
dewedev/src/components/ToolLayout.js
dwindown 82d14622ac Add Text Length Checker tool with comprehensive text analysis features
- Add new TextLengthTool.js with real-time text statistics
- Features: character/word/line/sentence/paragraph counting, reading time estimation
- Add Text Length Checker to navigation (ToolSidebar, Layout, App routing)
- Add Text Length Checker card to homepage
- Fix button styling with flex alignment for better UX
- Route: /text-length with Type icon from lucide-react
2025-09-21 07:09:33 +07:00

31 lines
760 B
JavaScript

import React from 'react';
const ToolLayout = ({ title, description, children, icon: Icon }) => {
return (
<div className="max-w-6xl mx-auto">
{/* Header */}
<div className="mb-8">
<div className="flex items-center space-x-3 mb-2">
{Icon && <Icon className="h-8 w-8 text-primary-600" />}
<h1 className="text-3xl font-bold text-gray-900 dark:text-white">
{title}
</h1>
</div>
{description && (
<p className="text-gray-600 dark:text-gray-300 text-lg">
{description}
</p>
)}
</div>
{/* Tool Content */}
<div className="space-y-6">
{children}
</div>
</div>
);
};
export default ToolLayout;