mediahub-fe/app/[locale]/(protected)/app/email/utils.ts

14 lines
235 B
TypeScript
Raw Normal View History

2024-11-26 03:09:48 +00:00
import { mails, Mail} from "./data"
// get mail
export const getMail = async () => {
return mails
}
// get mail by id
export const getMailById = async (mailId: string) => {
return mails.find(mail => mail.id === mailId)
}