* Removed emptyscreen component v1 version, migrated pages that still used it to v2, and removed v1 of workflow pages and components. * updated workflow pages imports to remove v2 from path. * Deleted v1 switch component, deleted v1 api-keys components, deleted old web integrations components that were unused. * Removed v1 list component. * Fixed event workflows tab path. * Fixed import path for button in sandbox page. * Cleanup and type fixes * Making explicit indexes * UI import migrations * More import fixes * More import fixes * Submodule sync * Type fixes * Build fixes Co-authored-by: zomars <[email protected]>
34 lines
792 B
TypeScript
34 lines
792 B
TypeScript
import { HorizontalTabs } from "@calcom/ui";
|
|
|
|
import { getSerializableForm } from "../lib/getSerializableForm";
|
|
|
|
export default function RoutingNavBar({
|
|
form,
|
|
appUrl,
|
|
}: {
|
|
form: 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",
|
|
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>
|
|
);
|
|
}
|