MCPcopy
hub / github.com/loggerhead/json4u / Item

Function Item

src/components/ui/search/CommandSearchInput.tsx:42–50  ·  view source on GitHub ↗
({ id, Icon }: Command)

Source from the content-addressed store, hash-verified

40}
41
42function Item({ id, Icon }: Command) {
43 const t = useTranslations();
44 return (
45 <div className="h-8 flex items-center whitespace-nowrap overflow-x-hidden" title={t(id as MessageKey)}>
46 {Icon && <Icon className="icon mr-2" />}
47 <span className="overflow-hidden text-ellipsis whitespace-nowrap">{t(id as MessageKey)}</span>
48 </div>
49 );
50}

Callers

nothing calls this directly

Calls 1

tFunction · 0.50

Tested by

no test coverage detected