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

Function getParams

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

Source from the content-addressed store, hash-verified

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

Callers 1

useBlockPostPanelFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected