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

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