mobilizon/src/composition/config.ts

23 lines
596 B
TypeScript
Raw Normal View History

import { useExportFormats, useUploadLimits } from "./apollo/config";
export const useHost = (): string => {
return window.location.hostname;
};
export const useAvatarMaxSize = (): number | undefined => {
const { uploadLimits } = useUploadLimits();
return uploadLimits.value?.avatar;
};
export const useBannerMaxSize = (): number | undefined => {
const { uploadLimits } = useUploadLimits();
return uploadLimits.value?.banner;
};
export const useParticipantsExportFormats = () => {
const { exportFormats } = useExportFormats();
return exportFormats.value?.eventParticipants;
};