db-icon.tsx 483 B

1234567891011121314151617181920212223
  1. import Image from 'next/image';
  2. interface IProps {
  3. width?: number;
  4. height?: number;
  5. src: string;
  6. label: string;
  7. className?: string;
  8. }
  9. function DBIcon({ src, label, width, height, className }: IProps) {
  10. return (
  11. <Image
  12. className={`w-11 h-11 rounded-full mr-4 border border-gray-200 object-contain bg-white ${className}`}
  13. width={width || 44}
  14. height={height || 44}
  15. src={src}
  16. alt={label || 'db-icon'}
  17. />
  18. );
  19. }
  20. export default DBIcon;