Files
AFFiNE-Mirror/packages/backend/server/src/mails/components/workspace.tsx
T

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`}
/>
);
};