Files
DocsGPT/frontend/src/components/Avatar.tsx
2024-12-04 02:47:57 +05:30

14 lines
264 B
TypeScript

import { ReactNode } from 'react';
export default function Avatar({
avatar,
size,
className,
}: {
avatar: ReactNode;
size?: 'SMALL' | 'MEDIUM' | 'LARGE';
className: string;
}) {
return <div className={`${className} flex-shrink-0`}>{avatar}</div>;
}