export function matchesType(targetType, draggedItemType) {
    if (draggedItemType === null) {
        return targetType === null;
    }
    return Array.isArray(targetType)
        ? targetType.some((t) => t === draggedItemType)
        : targetType === draggedItemType;
}
