MCPcopy Create free account
hub / github.com/Detaysoft/react-chat-elements / photo

Function photo

example/utils/common.ts:4–9  ·  view source on GitHub ↗
(size: number)

Source from the content-addressed store, hash-verified

2import { useState } from 'react'
3
4export const photo = (size: number) => {
5 return new Identicon(String(Math.random()) + String(Math.random()), {
6 margin: 0,
7 size: size || 20,
8 }).toString()
9}
10
11export const getRandomColor = () => {
12 var letters = '0123456789ABCDEF'

Callers 4

MeetingListExampleFunction · 0.90
NavbarExampleFunction · 0.90
AvatarExampleFunction · 0.90
MessageTypes.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…