import clsx from "clsx"; import { PropertyType } from "~/application/enums/entities/PropertyType"; import { Colors } from "~/application/enums/shared/Colors"; import CheckIcon from "~/components/ui/icons/CheckIcon"; import SimpleBadge from "../../ui/badges/SimpleBadge"; import PaperClipIcon from "../../ui/icons/PaperClipIcon"; import ExperimentIconFilled from "~/components/ui/icons/tests/ExperimentIconFilled"; interface Props { title?: string; type: PropertyType; className?: string; } export default function PropertyBadge({ title, type, className }: Props) { return ( <> {title ? ( ) : [PropertyType.NUMBER, PropertyType.RANGE_NUMBER].includes(type) ? ( ) : [PropertyType.DATE, PropertyType.RANGE_DATE].includes(type) ? ( ) : type === PropertyType.TEXT ? ( ) : type === PropertyType.BOOLEAN ? ( ) : type === PropertyType.SELECT || type === PropertyType.MULTI_SELECT || type === PropertyType.MULTI_TEXT ? ( ) : type === PropertyType.MEDIA ? ( ) : type === PropertyType.FORMULA ? ( ) : (
)} ); }