* Add very basic reporting logic * Support more logical operators * Add tests * Fix types * Add playwright test for reporting * Fix table UI * Remove only * Better name variable * Increase max_old_space to allow tests to run without reaciing limit * Update test name * Reuse getServerSideProps * Variable renaming * PR Suggestions Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
34 lines
795 B
TypeScript
34 lines
795 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",
|
|
},
|
|
{
|
|
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>
|
|
);
|
|
}
|