One self-hosted app for your shows, movies and music.
// The accessible name starts with the visible label (WCAG 2.5.3), followed by a longer hint. A hint that already holds the label is the whole name.
export const actionName = (a: { label: string; hint: string }): string =>
!a.hint || a.hint === a.label ? a.label : a.hint.includes(a.label) ? a.hint : `${a.label}: ${a.hint}`;