sendou.ink/app/features/img-upload/upload-constants.ts
2023-01-10 00:06:24 +02:00

19 lines
586 B
TypeScript

import type { ImageUploadType } from "./upload-types";
export const MAX_UNVALIDATED_IMG_COUNT = 5;
export const IMAGE_TYPES = ["team-pfp", "team-banner"] as const;
export const imgTypeToDimensions: Record<
ImageUploadType,
{ width: number; height: number }
> = {
"team-pfp": { width: 400, height: 400 },
"team-banner": { width: 1000, height: 500 },
};
export const imgTypeToStyle: Record<ImageUploadType, React.CSSProperties> = {
"team-pfp": { borderRadius: "100%", width: "144px", height: "144px" },
"team-banner": { borderRadius: "var(--rounded)", width: "100%" },
};