import React, { ReactNode } from 'react'; interface ModalWindowtProps { children: ReactNode | null; state: boolean; callBack: (value: boolean) => void; } export default function ModalWindow({ children, state, callBack }: ModalWindowtProps) { return ( <> {state && (