* open reporting in new tab full screen * nit * fixed type * Fix failing test * Update packages/app-store/routing-forms/pages/reporting/[...appPages].tsx --------- Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Co-authored-by: Hariom <hariombalhara@gmail.com>
35 lines
830 B
TypeScript
35 lines
830 B
TypeScript
import { HorizontalTabs } from "@calcom/ui";
|
|
|
|
import type { getSerializableForm } from "../lib/getSerializableForm";
|
|
|
|
export default function RoutingNavBar({
|
|
form,
|
|
appUrl,
|
|
}: {
|
|
form: Awaited<ReturnType<typeof getSerializableForm>>;
|
|
appUrl: string;
|
|
}) {
|
|
const tabs = [
|
|
{
|
|
name: "Form",
|
|
href: `${appUrl}/form-edit/${form?.id}`,
|
|
},
|
|
{
|
|
name: "Routing",
|
|
href: `${appUrl}/route-builder/${form?.id}`,
|
|
className: "pointer-events-none opacity-30 lg:pointer-events-auto lg:opacity-100",
|
|
},
|
|
{
|
|
name: "Reporting",
|
|
target: "_blank",
|
|
href: `${appUrl}/reporting/${form?.id}`,
|
|
className: "pointer-events-none opacity-30 lg:pointer-events-auto lg:opacity-100",
|
|
},
|
|
];
|
|
return (
|
|
<div className="mb-4">
|
|
<HorizontalTabs tabs={tabs} />
|
|
</div>
|
|
);
|
|
}
|