function RoomType({ room }) {
    const { name, images, slug, price } = room;
    return (

            <div className="image-container">
            <h3 className="room-info">{name}</h3>
                <img src={images[0]} alt="room image" />
                <Link to={`/rooms/${slug}`} className="feature-link"><Button varient="outlined" size="large" className="feature-btn">Features</Button></Link>
                <div className="price">
                    <h5>${price}</h5>
                    <p>Per Night</p>
                </div>
               
            </div>
           
   
    );
}
/*To allow the /rooms/:slug to be unique per individual room title*/
To allow the /rooms/:slug to be unique per individual room title
To allow the / rooms / : slug to be unique per individual room title
function RoomType({ room }) {
    const { name, images, slug, price } = room;
    return (
            <div className="image-container">
            <h3 className="room-info">{name}</h3>
                <img src={images[0]} alt="room image" />
                <Link to={`/rooms/${slug}`} className="feature-link"><Button varient="outlined" size="large" className="feature-btn">Features</Button></Link>
                <div className="price">
                    <h5>${price}</h5>
                    <p>Per Night</p>
                </div>
            </div>
    );
}
function RoomType ( { room } ) { const { name , images , slug , price } = room ; return ( < div className = "image-container" > < h3 className = "room-info" > { name } < / h3 > < img src = { images [ 0 ] } alt = "room image" / > < Link to = { ` ${ slug } ` } className = "feature-link" > < Button varient = "outlined" size = "large" className = "feature-btn" > Features < / Button > < / Link > < div className = "price" > < h5 > $ { price } < / h5 > < p > Per Night < / p > < / div > < / div > ) ; }
To allow the /rooms/:slug to be unique per individual room title
To allow the / rooms / : slug to be unique per individual room title