diff --git a/apps/web/src/components/auth/BindContactModal/types.ts b/apps/web/src/components/auth/BindContactModal/types.ts new file mode 100644 index 000000000..569bbb69a --- /dev/null +++ b/apps/web/src/components/auth/BindContactModal/types.ts @@ -0,0 +1,14 @@ +import type { BindContactResponse } from "@/api/auth" + +/** BindContactModal 组件属性 */ +export interface BindContactModalProps { + /** 是否打开 */ + open: boolean + /** 绑定成功回调 */ + onSuccess?: (user: BindContactResponse["user"]) => void + /** 取消回调 */ + onCancel?: () => void +} + +/** 联系方式类型 */ +export type ContactType = "email" | "phone"