mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-19 17:58:48 +00:00
31 lines
1014 B
TypeScript
31 lines
1014 B
TypeScript
// Copyright 2025 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
import type { ReactNode } from 'react';
|
|
import React from 'react';
|
|
import { AxoAlertDialog } from '../../../axo/AxoAlertDialog.dom.js';
|
|
|
|
export function DeleteChatFolderDialog(props: {
|
|
title: string;
|
|
description: ReactNode;
|
|
cancelText: string;
|
|
deleteText: string;
|
|
onConfirm: () => void;
|
|
}): JSX.Element {
|
|
return (
|
|
<AxoAlertDialog.Content size="sm" escape="cancel-is-noop">
|
|
<AxoAlertDialog.Body>
|
|
<AxoAlertDialog.Title>{props.title}</AxoAlertDialog.Title>
|
|
<AxoAlertDialog.Description>
|
|
{props.description}
|
|
</AxoAlertDialog.Description>
|
|
</AxoAlertDialog.Body>
|
|
<AxoAlertDialog.Footer>
|
|
<AxoAlertDialog.Cancel>{props.cancelText}</AxoAlertDialog.Cancel>
|
|
<AxoAlertDialog.Action variant="destructive" onClick={props.onConfirm}>
|
|
{props.deleteText}
|
|
</AxoAlertDialog.Action>
|
|
</AxoAlertDialog.Footer>
|
|
</AxoAlertDialog.Content>
|
|
);
|
|
}
|