"use client"; /** * Editable policy title + description for method-card Create modals in Customize mode. * View mode continues to use {@link ContentLockup} via the `Create` modal defaults. */ import TextInput from "../../../components/controls/TextInput"; import ModalTextAreaField from "./ModalTextAreaField"; export interface MethodCardCustomizeModalHeaderProps { titleLabel: string; descriptionLabel: string; titleValue: string; descriptionValue: string; onTitleChange: (_value: string) => void; onDescriptionChange: (_value: string) => void; /** @default 3 */ descriptionRows?: number; /** When false, only the policy title row is rendered (core values rename). */ showDescription?: boolean; } export default function MethodCardCustomizeModalHeader({ titleLabel, descriptionLabel, titleValue, descriptionValue, onTitleChange, onDescriptionChange, descriptionRows = 3, showDescription = true, }: MethodCardCustomizeModalHeaderProps) { return (
onTitleChange(e.target.value)} inputSize="medium" /> {showDescription ? ( ) : null}
); }