dappros/ethora

View on GitHub
client-reactnative/src/helpers/banSystemMessage.ts

Summary

Maintainability
A
0 mins
Test Coverage

interface BanSystemMessageProps {
    senderName: string;
    name: string;
  }

export const banSystemMessage = (data: BanSystemMessageProps) => {
  
    return [
        {
            _id: 1,
            text: `${data.senderName} removed by ${data.name}`,
            createdAt: new Date(),
            system: true,
        },
    ];
};