Better content-type detection for editor

This commit is contained in:
Gregory Schier committed 2024-08-29 06:07:31 -07:00
1 parent 690ef02a38
commit fdc60445c8
13 files changed
+53 -32

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
import { useMemo } from 'react';
import type { HttpResponseHeader } from '@yaakapp/api';
import { useMemo } from 'react';
export function useContentTypeFromHeaders(headers: HttpResponseHeader[] | null): string | null {
return useMemo(