PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.15
Yatra – Travel Booking & Tour Operator Software v3.0.15
3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 2.0.10 All 83 releases
yatra / resources / js / components / trip-form / shared / SectionHeader.tsx

SectionHeader.tsx in Yatra – Travel Booking & Tour Operator Software 3.0.15, at resources/js/components/trip-form/shared/SectionHeader.tsx

37 lines 843 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Section Header Component
3 * Reusable header for all trip form sections
4 */
5
6 import React from "react";
7 import { LucideIcon } from "lucide-react";
8 import { __ } from "../../../lib/i18n";
9
10 interface SectionHeaderProps {
11 icon: LucideIcon;
12 title: string;
13 description?: string;
14 }
15
16 export const SectionHeader: React.FC<SectionHeaderProps> = ({
17 icon: Icon,
18 title,
19 description,
20 }) => {
21 return (
22 <div className="mb-4">
23 <div className="flex items-center gap-2 mb-2">
24 <Icon className="w-5 h-5 text-gray-500" />
25 <h2 className="text-lg font-semibold text-gray-900 dark:text-white">
26 {__(title, title)}
27 </h2>
28 </div>
29 {description && (
30 <p className="text-sm text-gray-600 dark:text-gray-400">
31 {__(description, description)}
32 </p>
33 )}
34 </div>
35 );
36 };
37