import React,{useEffect,useRef} from 'react'; import {BookOpen,X,ArrowRight} from 'lucide-react'; export default function Tutorial({open,onDismiss,onStart}){ const dialog=useRef(null),title=useRef(null); useEffect(()=>{ if(open){if(!dialog.current.open)dialog.current.showModal();title.current?.focus({preventScroll:true})} else if(dialog.current.open)dialog.current.close(); },[open]); return {event.preventDefault();onDismiss()}} onClose={()=>{if(open)onDismiss()}}>
GUIDED PRACTICE

Learn by doing

Practise the real steps in about 3 minutes. A guide points to the next button.

; }