Skip to main content

usePopup

import { usePopup } from '@lad-tech/mobydick-core';

const CustomPopup = () => {
return ...
}

const App = () => {
const {open, close, closeAll} = usePopup(CustomPopup);
return ...
}

Return

open

TYPE
(popup: IOpenPopupParams) => string

Function which open popup

close

TYPE
() => void

Function which close popup

closeAll

TYPE
() => void

Function which close all popup