import React from "react"; interface LabelWithIconProps { icon: React.ReactNode; title?: string; small?: boolean; className?: string; required?: boolean; } /** * Render the label of with an icon and the title of a property * @group Form custom fields */ export function LabelWithIcon({ icon, title, small, className, required }: LabelWithIconProps) { return ( {icon} {(title ?? "") + (required ? " *" : "")} ); }