import { useCdn } from '../../contexts/cdnContext';

export const useCdnUrl = () => {
  const { cdnUrl } = useCdn();
  return cdnUrl;
};

export const useCdnBasePath = () => {
  const { getCdnBasePath } = useCdn();
  return getCdnBasePath();
};

export const useAssetUrl = (assetName: string, orgShortName: string) => {
  const { getAssetURL } = useCdn();
  return getAssetURL(assetName, orgShortName);
};
