import React from "react";

export default function ControlLabel({
	uischema,
	required
}: {
	uischema: any;
	required?: boolean;
}) {
	return (
		<>
			{uischema.label && (
				<label
					htmlFor="email"
					className="block text-sm font-medium leading-6 text-gray-900">
					{uischema.label} {required && <span className="text-red-500">*</span>}
				</label>
			)}
		</>
	);
}
