import { Entity } from '@backstage/catalog-model' ; export const GITHUB_REPO_ANNOTATION = 'github.com/project-slug' ; export const useProjectName = ( entity ) => { return entity ?. metadata . annotations ?. [ GITHUB_REPO_ANNOTATION ] ?? '' ; } ;