import React, { useState } from 'react'; import { useNavigate } from 'react-router-dom'; function JoinStation() { const [verifyMethod, setVerifyMethod] = useState(''); const [password, setPassword] = useState(''); const navigate = useNavigate(); const handleJoinStation = () => { console.log('Joining station with password:', password); // Redirect to station page after joining navigate('/station'); }; return (

Join a Station on Serena

How would you like to verify access?

{verifyMethod === 'password' && (
setPassword(e.target.value)} placeholder="Enter station password" />
)}
); } export default JoinStation;