import React, { useState } from 'react' import { Button, Dialog } from 'playbook-ui' const DialogScrollable = () => { const useDialog = (visible = false) => { const [opened, setOpened] = useState(visible) const toggle = () => setOpened(!opened) return [opened, toggle] } const [dialog1Opened, toggleDialog1] = useDialog() const [dialog2Opened, toggleDialog2] = useDialog() return ( <> ) } export default DialogScrollable