import { HexString } from '@polkadot/util/types';
import { CSSTransition } from 'react-transition-group';
import { MailboxItem } from '@/features/mailbox';
import { Message } from '../message';
type Props = {
list: MailboxItem[];
onClaim: (messageId: HexString, reject: () => void) => void;
};
const Messages = ({ list, onClaim }: Props) => {
const getMessages = () =>
list.map((mail) => (