import React from 'react';
import { useRouter } from 'next/router';
import classNames from 'classnames';

export const PizzaMod: React.FC = () => {
    const router = useRouter()
    const { id } = router.query
    return(
        <div id="openModal" className={'modal'}>
            <div className={classNames('modal_dialog ')}>
                <div className={classNames('modal_content ')}>
                    <div className='modal_body'>
                    <p>Post: {id}</p>
                    </div>
                </div>
            </div>
      </div>
    )
};
export default PizzaMod;