Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | import { Box, Stack } from "@mui/material";
import GiveButton from "@shared/Button/GiveButton";
import { useAppTheme } from "@theme/v2/Provider";
interface MobileFooterProps {
onSaveDraft: () => void;
onPublish: () => void;
}
export default function MobileFooter({
onSaveDraft,
onPublish,
}: MobileFooterProps) {
const { palette } = useAppTheme();
return (
<Box
sx={{
position: "fixed",
bottom: 0,
left: 0,
right: 0,
zIndex: 100,
backgroundColor: palette.background.default,
borderTop: `1px solid ${palette?.border?.primary}`,
padding: "20px",
}}
>
<Stack direction="row" justifyContent="flex-end" gap="16px">
<GiveButton
label="Save Draft"
color="light"
size="large"
onClick={onSaveDraft}
/>
<GiveButton
label="Publish"
variant="filled"
size="large"
onClick={onPublish}
/>
</Stack>
</Box>
);
}
|