UNPKG

@elastic-suite/gally-admin-shared

Version:
6 lines (4 loc) 168 B
import { FunctionComponent } from 'react' export function getDisplayName<P>(Cmp: FunctionComponent<P>): string { return Cmp.displayName || Cmp.name || 'Component' }