function Example() { const [showModal, setShowModal] = React.useState(false); return ( <> setShowModal(true)}> Delete Post { setShowModal(false); }} > Delete blog post Are you sure you want to delete this post? This action cannot be undone. { setShowModal(false); }} className="flex-grow" > Cancel { setShowModal(false); }} size="sm" className="flex-grow" > Delete > ); }