"use client"; import type { ReactNode } from "react"; import { Textarea } from "@/components/ui/textarea"; export const TOOL_DIALOG_CONTENT_CLASS = "max-h-[calc(100vh-3rem)] grid-rows-[auto_minmax(0,1fr)_auto] overflow-y-auto sm:h-[48.875rem] sm:max-w-6xl lg:overflow-hidden"; export function ToolFormField({ label, required, children, }: { label: string; required?: boolean; children: ReactNode; }) { return ( ); } export function ToolFormSection({ title, scrollable = false, tall = false, children, }: { title: string; scrollable?: boolean; tall?: boolean; children: ReactNode; }) { return (
{title}
{children}
); } export function ToolJsonField({ label, value, onChange, rows = 4, disabled = false, placeholder, hint, }: { label: string; value: string; onChange: (value: string) => void; rows?: number; disabled?: boolean; placeholder?: string; hint?: string; }) { return (