All files / src/components/projects/form-sections AdditionalInfoSection.tsx

100% Statements 3/3
100% Branches 0/0
100% Functions 3/3
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56                          79x                     3x                                           29x                  
interface AdditionalInfoSectionProps {
	useRooms: boolean;
	clientTestimonial: string;
	onUseRoomsChange: (value: boolean) => void;
	onClientTestimonialChange: (value: string) => void;
}
 
export function AdditionalInfoSection({
	useRooms,
	clientTestimonial,
	onUseRoomsChange,
	onClientTestimonialChange,
}: AdditionalInfoSectionProps) {
	return (
		<div className="space-y-4">
			<h3 className="text-md font-semibold text-foreground-default border-b pb-2">
				Additional Information
			</h3>
 
			<div>
				<label className="flex items-center gap-2">
					<input
						type="checkbox"
						checked={useRooms}
						onChange={(e) => onUseRoomsChange(e.target.checked)}
						className="rounded border-default text-blue-600 focus:ring-primary-500"
					/>
					<span className="text-sm font-medium text-foreground-default">
						Enable Room Organization
					</span>
				</label>
				<p className="text-xs text-foreground-muted mt-1 ml-6">
					Organize photos by room (e.g., Kitchen, Bedroom, Living Room)
				</p>
			</div>
 
			<div>
				<label
					htmlFor="client-testimonial"
					className="block text-sm font-medium text-foreground-default mb-1"
				>
					Client Testimonial
				</label>
				<textarea
					id="client-testimonial"
					value={clientTestimonial}
					onChange={(e) => onClientTestimonialChange(e.target.value)}
					placeholder="Share what the client said about this project..."
					rows={3}
					className="flex min-h-[80px] w-full rounded-md border border-default bg-background-elevated px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500"
				/>
			</div>
		</div>
	);
}