import { stringToColour } from '@/utils'; interface IWorkspaceAvatar { size: number; name: string; avatar: string; style?: React.CSSProperties; } export const WorkspaceAvatar = (props: IWorkspaceAvatar) => { const size = props.size || 20; const sizeStr = size + 'px'; return ( <> {props.avatar ? (