ntfy/web/src/components/DialogFooter.jsx

30 lines
654 B
React
Raw Normal View History

2022-03-29 21:22:26 +02:00
import * as React from "react";
import { Box, DialogContentText, DialogActions } from "@mui/material";
2022-03-29 21:22:26 +02:00
2023-05-24 09:03:28 +02:00
const DialogFooter = (props) => (
<Box
sx={{
display: "flex",
flexDirection: "row",
justifyContent: "space-between",
paddingLeft: "24px",
paddingBottom: "8px",
}}
>
<DialogContentText
component="div"
aria-live="polite"
2023-05-23 21:13:01 +02:00
sx={{
2023-05-24 09:03:28 +02:00
margin: "0px",
paddingTop: "12px",
paddingBottom: "4px",
2023-05-23 21:13:01 +02:00
}}
>
2023-05-24 09:03:28 +02:00
{props.status}
</DialogContentText>
<DialogActions sx={{ paddingRight: 2 }}>{props.children}</DialogActions>
</Box>
);
2022-03-29 21:22:26 +02:00
export default DialogFooter;