import clsx from 'clsx'; import React from 'react'; import Modal from '../Modal'; import styles from './styles.scss'; type InsideModalProps = { show?: boolean; onClose?: (...args: any[]) => any; title?: string; showTitle?: boolean; showCloseBtn?: boolean; clickOutToClose?: boolean; containerStyles?: string; maskStyle?: string; modalStyles?: string; contentStyle?: string; }; const InsideModal: React.FC = ({ show, onClose, children, title, showTitle, showCloseBtn, clickOutToClose, containerStyles, maskStyle, modalStyles, contentStyle, }) => { return ( {children} ); }; InsideModal.defaultProps = { title: '', showTitle: true, showCloseBtn: true, clickOutToClose: true, show: undefined, onClose: undefined, // @ts-expect-error TS(2322): Type '{ title: string; showTitle: true; showCloseB... Remove this comment to see the full error message children: undefined, containerStyles: undefined, maskStyle: undefined, modalStyles: undefined, contentStyle: undefined, }; export default InsideModal;