import React from 'react'; import { Dialog, DialogProps } from '@/components/elements/dialog'; import { Button } from '@/components/elements/button/index'; import CopyOnClick from '@/components/elements/CopyOnClick'; import { Alert } from '@/components/elements/alert'; interface RecoveryTokenDialogProps extends DialogProps { tokens: string[]; } export default ({ tokens, open, onClose }: RecoveryTokenDialogProps) => { const grouped = [] as [string, string][]; tokens.forEach((token, index) => { if (index % 2 === 0) { grouped.push([token, tokens[index + 1] || '']); } }); return (
                    {grouped.map((value) => (
                        
                            {value[0]}
                             
                            {value[1]}
                             
                        
                    ))}
                
These codes will not be shown again. Done
); };