feat: big major update

This commit is contained in:
2026-02-02 04:00:37 +03:00
parent bbab6fc46a
commit d557664b25
34 changed files with 1801 additions and 665 deletions

View File

@@ -1,10 +1,11 @@
import { Modal as MuiModal, Typography, Box } from "@mui/material";
import { Modal as MuiModal, Typography, Box, SxProps, Theme } from "@mui/material";
interface ModalProps {
open: boolean;
onClose: () => void;
children: React.ReactNode;
title?: string;
sx?: SxProps<Theme>;
}
const style = {
@@ -19,7 +20,7 @@ const style = {
borderRadius: 2,
};
export const Modal = ({ open, onClose, children, title }: ModalProps) => {
export const Modal = ({ open, onClose, children, title, sx }: ModalProps) => {
return (
<MuiModal
open={open}
@@ -27,7 +28,7 @@ export const Modal = ({ open, onClose, children, title }: ModalProps) => {
aria-labelledby="modal-modal-title"
aria-describedby="modal-modal-description"
>
<Box sx={style}>
<Box sx={{ ...style, ...sx }}>
{title && (
<Typography
id="modal-modal-title"