You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: model.go
    path of file: ./repos/octant/pkg/view/tsgen
    
    the code of the file until where you have to start completion: /*
 * Copyright (c) 2020 the Octant contributors. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */

package tsgen

import (
	"fmt"
	"reflect"
	"sort"
	gostrings "strings"

	"github.com/stoewer/go-strcase"

	"github.com/vmware-tanzu/octant/internal/util/strings"
)

// ConvertField converts struct field a to a tsgen Field.  If the
// field cannot be converted to a type script type, it will panic.
// If the field s
    
func (c Component) Referenced() []ImportReference {
	m := map[string]bool{}

	for _, f := range c.Fields {
		for _, n := range f.RefNames {
			m[n] = true
		}
	}

	var list []string
	for k := range m {
		list = append(list, k)
	}

	sort.Strings(list)

	var refs []ImportReference
	for _, r := range list {
		if c.Name != r { // Prevent nested/recursive component imports
			refs = append(refs, ImportReference{
				Name:       r,
				ImportName: strcase.KebabCase(r),
			})
		}
	}

	return refs
}