import React from 'react'; import clsx from 'clsx'; import { LockClosedIcon } from '@heroicons/react/solid'; import { performApiCall } from 'src/services/api'; import { showToast, ToastType } from 'src/common/util/show-toast'; // eslint-disable-next-line @typescript-eslint/no-unused-vars export function Login() { const handleSubmit = async () => { try { const { data } = await performApiCall({ path: '/login', method: 'POST', }); if (data.authorizationUrl) { window.location.href = data.authorizationUrl; } } catch (e: any) { showToast('Something went wrong', ToastType.Error); } }; return (