"use client"; import { Link } from "@/i18n/navigation"; import { mediaUrl } from "@/app/lib/media"; import type { DatingProfile } from "../types"; interface SwipeCardProps { profile: DatingProfile; badgeText: string; dragX: number; isDragging: boolean; isAnimatingOut: "left" | "right" | null; onLike: () => void; onDislike: () => void; onBeginDrag: (clientX: number) => void; onMoveDrag: (clientX: number) => void; onEndDrag: () => void; t: (key: string) => string; } export default function SwipeCard({ profile, badgeText, dragX, isDragging, isAnimatingOut, onLike, onDislike, onBeginDrag, onMoveDrag, onEndDrag, t, }: SwipeCardProps) { return (
๐ {profile.location}
{(profile.gender || profile.single) && ({[profile.gender, profile.single].filter(Boolean).join(" ยท ")}
)}{t("matchTags")}:
{profile.bio}