mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
18 lines
410 B
TypeScript
18 lines
410 B
TypeScript
import React from 'react';
|
|
import MyTooltip from '.';
|
|
import { IconProps, QuestionOutlineIcon } from '@chakra-ui/icons';
|
|
|
|
type Props = IconProps & {
|
|
label?: string | React.ReactNode;
|
|
};
|
|
|
|
const QuestionTip = ({ label, maxW, ...props }: Props) => {
|
|
return (
|
|
<MyTooltip label={label} maxW={maxW}>
|
|
<QuestionOutlineIcon w={'0.9rem'} {...props} />
|
|
</MyTooltip>
|
|
);
|
|
};
|
|
|
|
export default QuestionTip;
|