this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at f4e14626aab6b95a89af86a0cade00b9d6bbf505 10 lines 344 B view raw
1import {sanitizeDisplayName} from '#/lib/strings/display-names' 2import {sanitizeHandle} from '#/lib/strings/handles' 3 4export function getUserDisplayName< 5 T extends {displayName?: string; handle: string; [key: string]: any}, 6>(props: T): string { 7 return sanitizeDisplayName( 8 props.displayName || sanitizeHandle(props.handle, '@'), 9 ) 10}