import { TextInput, Field, FieldLabel, FieldRow } from '@rocket.chat/fuselage'; import type { ComponentProps } from 'react'; import { useHasLicenseModule } from '../../../hooks/useHasLicenseModule'; export type EeTextInputProps = { label: string } & ComponentProps; export const EeTextInput = ({ label, ...props }: EeTextInputProps) => { const { data: hasLicense = false } = useHasLicenseModule('livechat-enterprise'); if (!hasLicense) { return null; } return ( {label} ); }; export default EeTextInput;