Root Zanli
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
o5t6x7pgljbm
/
public_html
/
tuitioncoin.org
/
src
/
components
/
SmallComponents
/
Filename :
AppComponents.jsx
back
Copy
import { Alert, Box, Snackbar } from "@mui/material"; import { Button } from "@mui/material"; export function ToastNotify({ alertState, setAlertState }) { return ( <Snackbar anchorOrigin={{ vertical: "top", horizontal: "center" }} open={alertState.open} autoHideDuration={10000} key={"top center"} onClose={() => setAlertState({ ...alertState, open: false })} > <Alert onClose={() => setAlertState({ ...alertState, open: false })} severity={alertState.severity} > {alertState.message} </Alert> </Snackbar> ); } export function StyledButton({ children, ...props }) { return ( <> <Button {...props} sx={{ color: "#ffffff", background: "#1F60C9", fontSize: "18px", boxShadow: "rgba(0, 0, 0, 0.35) 0px 5px 15px", textTransform: "capitalize", fontFamily: "Outfit", borderRadius: "12px", width: props.width, "&.Mui-disabled": { color: "#979EA7", }, "&:hover": { background: "#1F60C9", }, }} > {children} </Button> </> ); } export function StyledText({ children, ...props }) { return ( <> <Box {...props} sx={{ color: "#000000", fontSize: "18px", // fontFamily: "Josefin Sans", fontWeight: "500", mr: props.mr, }} > {children} </Box> </> ); } export function StyledTitle({ children, ...props }) { return ( <> <Box {...props} sx={{ color: "#000000", fontSize: "40px", // fontFamily: "Josefin Sans", fontWeight: "700", mr: props.mr, }} > {children} </Box> </> ); }