import { Entity } from "@/common/models/Entity";
import { SelectFieldProps } from "@/common/models/SelectFieldProps";

export function getFieldTitle<T extends Entity>(field: SelectFieldProps<T>) {
	if (field.required) {
		return `${field.title} *`;
	}

	return field.title;
}
