// Copyright (c) Meta Platforms, Inc. and affiliates. 'use client'; import {useState} from 'react'; import {TextArea} from '@astryxdesign/core/TextArea'; import {Stack} from '@astryxdesign/core/Layout'; export default function TextAreaValidation() { const [errorValue, setErrorValue] = useState('Fix the'); const [warningValue, setWarningValue] = useState('Summarize the Q2 results'); const [successValue, setSuccessValue] = useState( 'Redesign the onboarding flow to reduce drop-off by 15% in Q3. Focus on simplifying the account creation step and adding a progress indicator.', ); const [errorNoMsgValue, setErrorNoMsgValue] = useState('Invalid content'); return (