type for tsc
This commit is contained in:
parent
0379216e05
commit
d51fb99fd3
1 changed files with 8 additions and 3 deletions
|
@ -6,12 +6,17 @@ import {
|
|||
Typography,
|
||||
type DialogProps,
|
||||
} from "@mui/material";
|
||||
import React from "react";
|
||||
|
||||
const DialogTitleWithCloseButton = (props) => {
|
||||
const { children, onClose, ...other } = props;
|
||||
interface DialogTitleWithCloseButtonProps {
|
||||
onClose: () => void;
|
||||
}
|
||||
|
||||
const DialogTitleWithCloseButton: React.FC<
|
||||
React.PropsWithChildren<DialogTitleWithCloseButtonProps>
|
||||
> = ({ children, onClose }) => {
|
||||
return (
|
||||
<DialogTitle {...other}>
|
||||
<DialogTitle>
|
||||
<SpaceBetweenFlex>
|
||||
<Typography variant="h3" fontWeight={"bold"}>
|
||||
{children}
|
||||
|
|
Loading…
Add table
Reference in a new issue