mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-14 08:36:22 +08:00
19 lines
361 B
TypeScript
19 lines
361 B
TypeScript
import { AvatarWithName } from './template';
|
|
|
|
export interface WorkspaceProps {
|
|
name: string;
|
|
avatar?: string;
|
|
size?: number;
|
|
}
|
|
|
|
export const Workspace = (props: WorkspaceProps) => {
|
|
return (
|
|
<AvatarWithName
|
|
name={props.name}
|
|
img={props.avatar}
|
|
width={`${props.size ?? 20}px`}
|
|
height={`${props.size ?? 20}px`}
|
|
/>
|
|
);
|
|
};
|