Creating a resuable modal like the example below

Can someone please suggest, how to create a reusable modal component like the example below, with native header component.