src/components/modal/index.tsx
Function Modal
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const Modal: FC = memo(() => {
const { isMounted, hideModal, type } = useModal();
// создаем root-modal для портала
const [container] = useState(() => {