MCPcopy
hub / github.com/simstudioai/sim / isEmpty

Function isEmpty

apps/sim/stores/mothership-drafts/store.ts:18–20  ·  view source on GitHub ↗
(payload: DraftPayload)

Source from the content-addressed store, hash-verified

16}
17
18function isEmpty(payload: DraftPayload): boolean {
19 return !payload.text && !payload.fileAttachments?.length && !payload.contexts?.length
20}
21
22export const useMothershipDraftsStore = create<MothershipDraftsState>()(
23 devtools(

Callers 1

store.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected