* Animate fields list and routes list * Rename routing_forms slug to routing-forms * Add comments * Fixtypo * Add dropdown separator for consistency * Fix missing occurences of routing_forms and improve types for webhooks * Fix weird error about title child is an array * Fix webhook issues * Fix webhook tests and issues found during fixing them * Fix lint errors and warnings Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
29 lines
621 B
TypeScript
29 lines
621 B
TypeScript
import { HorizontalTabs } from "@calcom/ui/v2";
|
|
|
|
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",
|
|
},
|
|
];
|
|
return (
|
|
<div className="mb-4">
|
|
<HorizontalTabs tabs={tabs} />
|
|
</div>
|
|
);
|
|
}
|