import React, { useState } from 'react' import { useNavigate } from 'react-router-dom' import Button from '@mui/material/Button' import Box from '@mui/material/Box' import FormControl from '@mui/material/FormControl' import Typography from '@mui/material/Typography' import TextField from '@mui/material/TextField' import { v4 as uuid } from 'uuid' export function Home() { const [roomName, setRoomName] = useState(uuid()) const navigate = useNavigate() const handleRoomNameChange = (event: React.ChangeEvent) => { const { value } = event.target setRoomName(value) } const handleFormSubmit = (event: React.SyntheticEvent) => { event.preventDefault() navigate(`/public/${roomName}`) } return (
chitchatter This is a communication tool that is free, open source, and designed for maximum security. All communication between you and your online peers is encrypted and ephemeral. chitchatter is still a work in progress and not yet ready to be used!
) }