export const hostApi =
  process.env.NODE_ENV === 'development' && !process.env.NEXT_PUBLIC_BACK_API
    ? 'http://localhost'
    : '';
export const portApi =
  process.env.NODE_ENV === 'development' && !process.env.NEXT_PUBLIC_BACK_API
    ? 8080
    : '';
export const baseURLApi = `${hostApi}${portApi ? `:${portApi}` : ``}/api`;

export const localStorageDarkModeKey = 'darkMode';

export const localStorageStyleKey = 'style';

export const containerMaxW = 'xl:max-w-full xl:mx-auto 2xl:mx-20';

export const appTitle = 'Shimahara Visual';

export const getPageTitle = (currentPageTitle: string) =>
  `${currentPageTitle} — ${appTitle}`;
