import { Check, Clipboard } from 'lucide-react'; import { useRef } from 'react'; import { useAuth } from '../../hooks/use-auth'; import { useCopyText } from '../../hooks/use-copy-text'; import { useToast } from '../../hooks/use-toast'; import { cn } from '../../lib/classname'; import { Modal } from '../Modal'; type IncreaseRoadmapLimitProps = { onClose: () => void; }; export function IncreaseRoadmapLimit(props: IncreaseRoadmapLimitProps) { const { onClose } = props; const user = useAuth(); const toast = useToast(); const inputRef = useRef(null); const { copyText, isCopied } = useCopyText(); const referralLink = new URL( `/ai?rc=${user?.id}`, import.meta.env.DEV ? 'http://localhost:3000' : 'https://roadmap.sh', ).toString(); const handleCopy = () => { inputRef.current?.select(); copyText(referralLink); toast.success('Copied to clipboard'); }; return (

Refer your Friends

Share the URL below with your friends. When they sign up with your link, you will get extra roadmap generation credits.

); }