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

Function getParams

packages/shared/src/hooks/post/useBlockPostPanel.ts:59–71  ·  view source on GitHub ↗
(tags: BlockTagSelection)

Source from the content-addressed store, hash-verified

57}
58
59const getParams = (tags: BlockTagSelection): Params => {
60 const blocks: string[] = [];
61 const unblocks: string[] = [];
62
63 if (tags) {
64 Object.entries(tags).forEach(([tag, shouldBlock]) => {
65 const container = shouldBlock ? blocks : unblocks;
66 container.push(tag);
67 });
68 }
69
70 return { blocks, unblocks };
71};
72
73const ignoredCall = () => Promise.resolve({ successful: true });
74

Callers 1

useBlockPostPanelFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected