Functional Modal Component in ReactJS
Build a reusable functional modal dialog component. Accepts title, body content, and footer (action buttons) as props or children. Renders with a semi-transparent backdrop. Closes on backdrop click or a close button. Must be composable so any content can be placed inside it.