DB-GPT/web/pages/mobile/chat/components/OptionIcon.tsx
lhwan 3a32344380
feat: web update (#1860)
Co-authored-by: 夏姜 <wenfengjiang.jwf@digital-engine.com>
Co-authored-by: yhjun1026 <460342015@qq.com>
Co-authored-by: aries_ckt <916701291@qq.com>
Co-authored-by: wb-lh513319 <wb-lh513319@alibaba-inc.com>
2024-08-22 11:05:18 +08:00

16 lines
399 B
TypeScript

import Image from 'next/image';
import React, { memo } from 'react';
interface IProps {
width?: number;
height?: number;
src: string;
label: string;
className?: string;
}
const OptionIcon: React.FC<IProps> = ({ width, height, src, label }) => {
return <Image width={width || 14} height={height || 14} src={src} alt={label || 'db-icon'} priority />;
};
export default memo(OptionIcon);