MCPcopy Create free account
hub / github.com/dailydotdev/apps / getIcon

Function getIcon

packages/shared/src/components/fields/DragDrop.tsx:56–66  ·  view source on GitHub ↗
(state: MutationStatus)

Source from the content-addressed store, hash-verified

54}
55
56const getIcon = (state: MutationStatus) => {
57 if (state === 'pending') {
58 return <Loader />;
59 }
60
61 if (state === 'success') {
62 return <ChecklistAIcon className="text-accent-avocado-default" />;
63 }
64
65 return null;
66};
67
68interface ItemProps {
69 name: string;

Callers 2

LargeItemFunction · 0.70
CompactItemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected