Preview:
  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}`);
    }
  };
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter