import React from 'react'; const RoastDisplay = ({ roast, location, loading }) => { const getLocationString = () => { if (!location) return ''; let parts = []; if (location.city) parts.push(location.city); if (location.state) parts.push(location.state); if (location.country) parts.push(location.country); return parts.join(', '); }; return ( <>
{loading ? (
) : roast ? (

{roast}

) : (

Ready to get roasted? Hit the button if you can handle it...

)}
{location && (
📍 {getLocationString()}
)} ); }; export default RoastDisplay;