2023-01-04 13:30:46 +00:00
|
|
|
import { Utils as QbUtils } from "react-awesome-query-builder";
|
|
|
|
|
2023-02-16 22:39:57 +00:00
|
|
|
import type { GlobalRoute, SerializableRoute } from "../types/types";
|
2023-01-04 13:30:46 +00:00
|
|
|
|
|
|
|
export const createFallbackRoute = (): Exclude<SerializableRoute, GlobalRoute> => {
|
|
|
|
const uuid = QbUtils.uuid();
|
|
|
|
return {
|
|
|
|
id: uuid,
|
|
|
|
isFallback: true,
|
|
|
|
action: {
|
|
|
|
type: "customPageMessage",
|
|
|
|
value: "Thank you for your interest! We will be in touch soon.",
|
|
|
|
},
|
|
|
|
queryValue: { id: uuid, type: "group" },
|
|
|
|
};
|
|
|
|
};
|