import { ProFormTextArea } from '@ant-design/pro-components';

type BaseFormTextAreaProps = React.ComponentProps<typeof ProFormTextArea>;
export type { BaseFormTextAreaProps };

const BaseFormTextArea = (props: BaseFormTextAreaProps) => {
  return (
    <ProFormTextArea
      {...props}
      placeholder={
        props?.placeholder ??
        `请输入${typeof props?.label === 'string' ? props?.label : ''}`
      }
    />
  );
};

export default BaseFormTextArea;
