mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-06 02:46:40 +00:00
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>
16 lines
399 B
TypeScript
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);
|