Last active
September 26, 2022 19:13
-
-
Save brandonchadlange/b9a492f82010e7ba4530eeb35f63b3e2 to your computer and use it in GitHub Desktop.
Modal with dependancies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface ModalProps { | |
opened: boolean; | |
close: () => void; | |
} | |
const AppModal = (props: ModalProps) => { | |
return ( | |
<Modal opened={props.opened}> | |
{/* Modal content goes here */} | |
<button onClick={close}>close</button> | |
</Modal> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment