import buildUrl from '@connect/url-placeholders';
import { ConfigStore } from './stores';

const EMPTY_AVATAR_ID = '0/0-0';

export default (avatarId, size = 200) =>
    buildUrl(ConfigStore.get('ui.avatar.url'), {
        id: avatarId || EMPTY_AVATAR_ID,
        size,
    });
