export const downloadFetch = async ({ url, filename }: { url: string; filename: string }) => {
  const a = document.createElement('a');
  a.href = url;
  a.download = filename;
  document.body.appendChild(a);
  a.click();
  document.body.removeChild(a);
};
