initial commit
This commit is contained in:
		
							
								
								
									
										19
									
								
								components/BottomSheet/index.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								components/BottomSheet/index.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| import React from 'react'; | ||||
| import Sheet from "react-modal-sheet"; | ||||
|  | ||||
| const BottomSheet = ({onOpen, onClose, children}) => { | ||||
|     return ( | ||||
|         <Sheet isOpen={onOpen} onClose={onClose} snapPoints={[400]} className={'flex justify-center'}> | ||||
|             <Sheet.Container> | ||||
|                 <Sheet.Header/> | ||||
|                 <Sheet.Content> | ||||
|                     {children} | ||||
|                 </Sheet.Content> | ||||
|             </Sheet.Container> | ||||
|  | ||||
|             <Sheet.Backdrop/> | ||||
|         </Sheet> | ||||
|     ) | ||||
| } | ||||
|  | ||||
| export default BottomSheet; | ||||
		Reference in New Issue
	
	Block a user