2024-09-30 15:17:38 -05:00
|
|
|
"use client";
|
|
|
|
|
import { Box } from "@mui/material";
|
|
|
|
|
import React from "react";
|
2024-10-01 13:45:34 -05:00
|
|
|
import { useTranslation } from "react-i18next";
|
2024-09-30 15:17:38 -05:00
|
|
|
import MainLayout from "@layouts/MainLayout";
|
|
|
|
|
|
2024-10-01 13:45:34 -05:00
|
|
|
interface CheckoutScreenProps {
|
|
|
|
|
onEndTransaction: () => void; // Callback para finalizar la transacción
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const CheckoutScreen: React.FC<CheckoutScreenProps> = ({ onEndTransaction }) => {
|
|
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
2024-09-30 15:17:38 -05:00
|
|
|
return (
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
width: '100vw',
|
|
|
|
|
height: '100vh',
|
|
|
|
|
overflow: 'hidden',
|
|
|
|
|
bgcolor: "background.default",
|
|
|
|
|
boxShadow: '4'
|
|
|
|
|
}}
|
|
|
|
|
>
|
2024-10-01 13:45:34 -05:00
|
|
|
<MainLayout onEndTransaction={onEndTransaction} />
|
2024-09-30 15:17:38 -05:00
|
|
|
</Box>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
2024-10-01 13:45:34 -05:00
|
|
|
export default CheckoutScreen;
|