import CenterLayout from "@/layouts/CenterLayout";
import FullPageLayout from "@/layouts/FullPageLayout";
import StyledImage from "./StyledImage";

const Message = ({text, actions}) => {
    return (
        <FullPageLayout sx={{p: 1}}>
            <CenterLayout spacing={3}>
                <StyledImage
                    src={"/images/loading_logo.svg"}
                    alt="loading loan facilities"
                    width={100}
                    height={100}
                />
                {text}
                {actions}
            </CenterLayout>
        </FullPageLayout>
    );
};

export default Message;
