import { useAuth0 } from "@auth0/auth0-react"; type CommentFormProps = { text: string; setText: Function; onSubmit: (e: React.FormEvent) => Promise; }; export default function CommentForm({ text, setText, onSubmit, }: CommentFormProps) { const { isAuthenticated, logout, loginWithPopup } = useAuth0(); return (