Adds tabs to the campaign page, but they don't do much yet

This commit is contained in:
2025-07-23 16:25:29 -07:00
parent 6d5d0e03a0
commit 4a109d152c
2 changed files with 51 additions and 13 deletions

View File

@@ -39,6 +39,7 @@ export type TabProps = {
label: string;
to: string;
params: Record<string, any>;
search: Record<string, any>;
active?: boolean;
};
@@ -46,12 +47,13 @@ const activeTabClass =
"text-slate-100 font-bold bg-slate-800 border-t border-b border-l";
const inactiveTabClass = "text-slate-300 bg-slate-900 border";
export function Tab({ label, to, params, active }: TabProps) {
export function Tab({ label, to, params, active, search }: TabProps) {
return (
<Link
key={label}
to={to}
params={params}
search={search}
className={`block p-2 border-slate-700 whitespace-nowrap ${active ? activeTabClass : inactiveTabClass}`}
>
{label}