"use client"; import type { ChangeEvent } from "react"; import { TextArea } from "@calcom/ui/components/form"; import { TextField } from "@calcom/ui/components/form"; import type { TextLikeComponentPropsRAQB, SelectLikeComponentPropsRAQB } from "./widget-types"; // Dynamic import for Select to avoid SSR issues import dynamic from "next/dynamic"; const Select = dynamic( async () => (await import("@calcom/ui/components/form")).SelectWithValidation ) as unknown as typeof import("@calcom/ui/components/form").SelectWithValidation; const TextAreaWidget = (props: TextLikeComponentPropsRAQB) => { const { value, setValue, readOnly, placeholder, maxLength, customProps, ...remainingProps } = props; const onChange = (e: ChangeEvent) => { const val = e.target.value; setValue(val); }; const textValue = value || ""; return (