feat(subscription): split vip and topup flows

This commit is contained in:
2026-06-29 14:45:01 +08:00
parent 72ac923a44
commit 096978e703
17 changed files with 106 additions and 432 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export const ROUTE_BUILDERS = {
chatDeviceId: (deviceId: string): `/chat/deviceid/${string}` =>
`/chat/deviceid/${encodeURIComponent(deviceId)}` as const,
subscription: (
type: "vip" | "voice",
type: "vip" | "topup",
options: { returnTo?: "chat" } = {},
): `/subscription?${string}` => {
const params = new URLSearchParams({ type });