mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
* move confirmation dialogs * Update index.tsx * Update ExtensionCard.tsx
32 lines
854 B
TypeScript
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>
|
|
)
|
|
}
|