supermemory/apps/web/components/settings/cancel-reasons.ts
Mahesh Sanikommu 9a1bab7182
feat(billing): cancel flow with reason capture + book-a-call (#1077)
Co-authored-by: ved015 <vedant.04.mahajan@gmail.com>
2026-06-10 13:34:33 +05:30

19 lines
599 B
TypeScript

export const CANCEL_REASONS = [
{ value: "too_expensive", label: "Too expensive" },
{ value: "missing_features", label: "Missing features I need" },
{ value: "switching", label: "Found a better alternative" },
{ value: "not_using", label: "Not using it enough" },
{ value: "other", label: "Other" },
] as const
export type CancelReasonValue = (typeof CANCEL_REASONS)[number]["value"]
const NEEDS_DETAIL: CancelReasonValue[] = [
"missing_features",
"switching",
"other",
]
export function cancelReasonNeedsDetail(value: CancelReasonValue): boolean {
return NEEDS_DETAIL.includes(value)
}