Files
standardnotes-app/packages/web/src/javascripts/Components/AccountMenu/ConfirmNoMergeDialog.tsx
T
Antonella Sgarlatta 6c07fab9e9 chore: first ttag batch (#3007) [skip ci]
* chore: set ttag for sign in and sign up strings

* chore: set ttag for account menu and session actions

* chore: set ttag for password change and re-encryption

* chore: set ttag for import and export account data
2026-05-28 14:37:02 -03:00

43 lines
1.5 KiB
TypeScript

import AlertDialog from '@/Components/AlertDialog/AlertDialog'
import Button from '@/Components/Button/Button'
import Icon from '@/Components/Icon/Icon'
import { FunctionComponent } from 'react'
import { c } from 'ttag'
type Props = {
onClose: () => void
onConfirm: () => void
}
const ConfirmNoMergeDialog: FunctionComponent<Props> = ({ onClose, onConfirm }) => {
return (
<AlertDialog closeDialog={onClose}>
<div className="flex items-center justify-between text-lg font-bold">
{c('Title').t`Delete local data?`}
<button className="rounded p-1 font-bold hover:bg-contrast" onClick={onClose}>
<Icon type="close" />
</button>
</div>
<div className="sk-panel-row">
<div>
<p className="text-base text-foreground lg:text-sm">
{c('Info')
.t`You have chosen not to merge your local data. If you proceed, your local notes and tags will be permanently deleted and replaced with data from your account. This action cannot be undone.`}
</p>
<p className="mt-2 text-base font-semibold text-danger lg:text-sm">
{c('Info').t`Are you sure you want to continue without merging?`}
</p>
</div>
</div>
<div className="mt-4 flex justify-end gap-2">
<Button onClick={onClose}>{c('Action').t`Cancel`}</Button>
<Button primary colorStyle="danger" onClick={onConfirm}>
{c('Action').t`Delete Local Data and Continue`}
</Button>
</div>
</AlertDialog>
)
}
export default ConfirmNoMergeDialog