import { Link } from 'react-router-dom'; import { PersonStanding, ChevronRight, Sparkles, Check } from 'lucide-react'; import { useCurrentUser } from '@/hooks/useCurrentUser'; import { useUserSkaterProfile } from '@/hooks/useSkaters'; import { SKATER_STYLES, SKATER_LEVELS } from '@/lib/types'; /** * Settings/profile companion card that surfaces the user's SkateSpots "skater * layer" (kind 35000) right next to their kind-0 profile — the reverse of the * cross-link on the Become-Skater page. Shows status + a link to edit, or a * nudge to join the directory if they haven't yet. */ export function SkaterDirectoryCard() { const { user } = useCurrentUser(); const { data: skater, isLoading } = useUserSkaterProfile(user?.pubkey); if (!user || isLoading) return null; // Not in the directory yet — gentle nudge. if (!skater) { return (
Join the Skater Directory
Add your stance, styles & level so skaters can find you.