/*********************************************************************************************************************************************************************** * File Name : DetailTabsHeader.jsx * Type : Component (Generic) * Description : Sticky header + underline tab row for tabbed detail pages — * back button, icon/title/subtitle, a right-aligned actions * slot, and an underline tab row. Parameterized version of the * header in ViewPlan.jsx (modules/admin/pages/tiers/ * ViewPlan.jsx), reused by the admin asset view pages so they * don't each duplicate the same markup. * * Props: * icon {Component} – lucide icon rendered before the title * title {string} * subtitle {string} * actions {ReactNode} – right-aligned buttons (e.g. Edit) * onBack {function} * tabs {Array<{ key, label, icon }>} * activeTab {string} * onTabChange{function} ***********************************************************************************************************************************************************************/ import { ArrowLeft } from "lucide-react"; import { Button } from "@/components/ui/button"; export default function DetailTabsHeader({ icon: Icon, title, subtitle, actions, onBack, tabs, activeTab, onTabChange, }) { return (
{subtitle}
}