12 lines
431 B
TypeScript
12 lines
431 B
TypeScript
|
import { useAuthRedirect } from "../../utils/hooks/useAuthRedirect";
|
|||
|
|
|||
|
export default function Payment() {
|
|||
|
// Используем хук авторизации
|
|||
|
const { isProcessing } = useAuthRedirect();
|
|||
|
|
|||
|
// Если идет обработка авторизации, показываем загрузку
|
|||
|
if (isProcessing) {
|
|||
|
return <div>Идёт загрузка...</div>;
|
|||
|
}
|
|||
|
|
|||
|
// ... existing component code ...
|