'use client' import { useState } from 'react' import { Button } from 'ui' import TextConfirmModal from 'ui-patterns/Dialogs/TextConfirmModal' export default function TextConfirmDialogDemo() { const [visible, setVisible] = useState(false) const bucketName = 'profile-pictures' return ( <> setVisible(true)}> Show Text Confirm Dialog setVisible(false)} onCancel={() => setVisible(false)} > Your bucket {bucketName} and all of its contents will be permanently deleted. This action cannot be undone. > ) }
Your bucket {bucketName} and all of its contents will be permanently deleted. This action cannot be undone.