const HTTP = 'http://';
const HTTPS = 'https://';

export const isFullLink = (link: string): boolean => link.includes(':');

export const getFullLink = ({ link = '', withHttp = false }): string =>
  isFullLink(link) ? link : `${withHttp ? HTTP : HTTPS}${link}`;
