import React from "react";
import { ModAvatarProps } from "./TAvatar";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";

class ModAvatar extends React.Component<ModAvatarProps> {
  constructor(props: ModAvatarProps) {
    super(props);
  }

  render(): React.ReactNode {
    return (
      <Avatar>
        <AvatarImage src={this.props.src} alt="Avatar"></AvatarImage>
        <AvatarFallback>{this.props.text}</AvatarFallback>
      </Avatar>
    );
  }
}

export { ModAvatar };
