// Copyright 2017-2026 @pezkuwi/react-components authors & contributors // SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; import Labelled from './Labelled.js'; import { styled } from './styled.js'; interface Props { children?: React.ReactNode; className?: string; isError?: boolean; isReadOnly?: boolean; label?: React.ReactNode; onChange?: (arg: string) => void; seed?: string; withLabel?: boolean; } function TextArea ({ children, className, isError, isReadOnly, label, onChange, seed, withLabel }: Props): React.ReactElement { const _onChange = useCallback( ({ target: { value } }: React.ChangeEvent): void => { onChange && onChange(value); }, [onChange] ); return (