mirror of
https://github.com/ershisan99/flashcards-example-project.git
synced 2025-12-16 20:59:27 +00:00
20 lines
567 B
TypeScript
20 lines
567 B
TypeScript
import { Dialog, DialogProps } from '@/components'
|
|
|
|
import s from './delete-deck-dialog.module.scss'
|
|
export default {}
|
|
type Props = Pick<DialogProps, 'onCancel' | 'onConfirm' | 'onOpenChange' | 'open'> & {
|
|
deckName: string
|
|
}
|
|
export const DeleteDeckDialog = ({ deckName, ...dialogProps }: Props) => {
|
|
return (
|
|
<Dialog {...dialogProps} title={'Delete deck'}>
|
|
<div className={s.content}>
|
|
<p>
|
|
Do you really want to remove <strong>{deckName}</strong>?
|
|
</p>
|
|
<p>All cards will be deleted.</p>
|
|
</div>
|
|
</Dialog>
|
|
)
|
|
}
|