OptionIcon.tsx 399 B

123456789101112131415
  1. import Image from 'next/image';
  2. import React, { memo } from 'react';
  3. interface IProps {
  4. width?: number;
  5. height?: number;
  6. src: string;
  7. label: string;
  8. className?: string;
  9. }
  10. const OptionIcon: React.FC<IProps> = ({ width, height, src, label }) => {
  11. return <Image width={width || 14} height={height || 14} src={src} alt={label || 'db-icon'} priority />;
  12. };
  13. export default memo(OptionIcon);