Files
supabase/apps/studio/components/interfaces/Realtime/Inspector/ApplyConfigModal.tsx
T
Jonathan Summers-Muir c4a492002b Chore/move confirmation dialogs (#21651)
* move confirmation dialogs

* Update index.tsx

* Update ExtensionCard.tsx
2024-03-01 18:16:25 +08:00

32 lines
854 B
TypeScript

import { Modal } from 'ui'
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
interface ApplyConfigModalProps {
visible: boolean
onSelectCancel: () => void
onSelectConfirm: () => void
}
export const ApplyConfigModal = (props: ApplyConfigModalProps) => {
return (
<ConfirmationModal
header="Previously found messages will be lost"
danger
buttonLabel="Confirm"
size="small"
{...props}
>
<Modal.Content>
<div className="py-4">
<p className="text-sm text-foreground"></p>
<p className="text-sm text-foreground-light">
The realtime inspector will clear currently collected messages and start listening for
new messages matching the updated filters.
</p>
</div>
</Modal.Content>
</ConfirmationModal>
)
}