import { Share } from "react-native"; import { colors } from "../../../theme"; import { useAuthStore } from "../../../store"; import { Events } from "../../../lib/analytics"; import { buildInviteShareMessage } from "../../../lib/inviteShareCopy"; import { SwipeInfoStateLayout } from "./SwipeInfoStateLayout"; interface SwipeNoPartnerStateProps { hasCouple: boolean; onPairPress: () => void; } export const SwipeNoPartnerState = ({ hasCouple, onPairPress }: SwipeNoPartnerStateProps) => { const accent = colors.premium.rose; const { couple, sealedCount } = useAuthStore(); const handleShareCode = async () => { if (!couple?.invite_code) return; try { await Share.share({ message: buildInviteShareMessage(couple.invite_code, sealedCount), }); Events.codeShared(); } catch (error) { console.error(error); } }; return ( ); };