mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00

* feat: dataset quote support system role * perf: adapt dataset quote role * fix: adapt o1 model
25 lines
516 B
TypeScript
25 lines
516 B
TypeScript
import React from 'react';
|
|
import { Box, BoxProps } from '@chakra-ui/react';
|
|
|
|
const FormLabel = ({
|
|
children,
|
|
required,
|
|
...props
|
|
}: BoxProps & {
|
|
required?: boolean;
|
|
children: React.ReactNode;
|
|
}) => {
|
|
return (
|
|
<Box color={'myGray.900'} fontSize={'sm'} position={'relative'} flexShrink={0} {...props}>
|
|
{required && (
|
|
<Box color={'red.600'} position={'absolute'} top={'-4px'} left={'-6px'}>
|
|
*
|
|
</Box>
|
|
)}
|
|
{children}
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default FormLabel;
|