@dapplets/dapplet-extension
Version:
The Bridge to the Augmented Web.
15 lines (14 loc) • 576 B
TypeScript
/**
* Returns a string, shortened to 50 or n letters by reducing the title/name, not the address!
*
* Examples:
*
* "Chalice Gianna (98793cd91a3f8706cfc4ed)"
* "Chalice Gianna (98793cd91a3f870fb126f6cfc4jhamsed)"
* "Chalice Gi… (98793cd91a3f870fb126sklf6cfc4jhamsed)"
* "Cha… (98793cd91a3f870fb126f66285808c7e094afcfc4ed)"
* "98793cd91a3f870fb126f66285808c7e094afcfc4ed876"
* "98793cd91a3f870fb126f66285808c7e094afcfc4e72bkdfw6kjd68qd876"
*/
declare const smartTitleSlice: (title: string, address: string, n?: number) => string;
export default smartTitleSlice;