// src/App.jsx function Alert({ type, children }) { const colors = { info: "#1f4068", error: "#5a1f1f", }; return (
{children}
); } function App() { return (

Your changes have been saved.

Something went wrong. Please try again.

); } export default App; /* Notes: - colors[type] is the lookup-object pattern from Chapter 5, used here to pick a background color based on the type prop. - children is rendered exactly as given — Alert doesn't need to know it's a

specifically, it just wraps whatever was passed in. */