blob: 67621e16c49c8a6d2225ed6ac230b9caeddfa642 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import { EXPORT_MIME_TYPES } from "@/constants/export-constants";
import type { ExportFormat } from "@/types/export";
export function getExportMimeType({
format,
}: {
format: ExportFormat;
}): string {
return EXPORT_MIME_TYPES[format];
}
export function getExportFileExtension({
format,
}: {
format: ExportFormat;
}): string {
return `.${format}`;
}
|