import { POCKETBASE_URL } from '../constants';
import { DBUserMeta } from '../db/UserMetas/type';

export function getStudentAvatarUrl(studentMeta: DBUserMeta) {
  const { collectionId, id, avatar } = studentMeta;
  return `url(${POCKETBASE_URL}/api/files/${collectionId}/${id}/${avatar})`;
}
