const navigateToFile = async (emailId: string) => {
if (!emailId) return; // If no email ID is present, return
const filename = await useGetFilename(emailId); // Fetch filename using the email ID
if (filename) {
router.push(`/secure/review/email?filename=${filename}`);
}
};
Comments