Vitron-Front/app/components/store/ProductDetailsForm.tsx
fazli 05cbbd8d5e chore(store): update product title placeholder example
"کفش آدیداس" (Adidas shoes) name-checked a third-party brand — swap for
"تیشرت بیسیک" (basic t-shirt), a neutral generic example.
2026-07-09 20:12:30 +00:00

40 lines
1.1 KiB
TypeScript

import { ChangeEvent } from "react";
import AppInput from "../AppInput";
import AppTextArea from "../AppTextArea";
interface ProductDetailsFormProps {
productTitle: string;
productDescription: string;
onTitleChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
onDescriptionChange: (e: ChangeEvent<HTMLTextAreaElement>) => void;
}
export const ProductDetailsForm: React.FC<ProductDetailsFormProps> = ({
productTitle,
productDescription,
onTitleChange,
onDescriptionChange,
}: ProductDetailsFormProps) => {
return (
<div className="flex flex-col gap-6 p-4 border-b">
{/* Product Title */}
<AppInput
inputTitle="عنوان محصول:"
inputValue={productTitle}
inputPlaceholder="مثل: تیشرت بیسیک"
inputOnChange={onTitleChange}
inputDir="rtl"
/>
{/* Product Description */}
<AppTextArea
inputTitle="توضیحات:"
inputValue={productDescription}
inputPlaceholder="توضیحات محصول را اینجا وارد کنید..."
inputOnChange={onDescriptionChange}
inputDir="rtl"
/>
</div>
);
};