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

Function getCenteredOffset

packages/shared/src/components/alert/AlertPointer.tsx:53–53  ·  view source on GitHub ↗
(offset: number)

Source from the content-addressed store, hash-verified

51};
52
53const getCenteredOffset = (offset: number) => `calc(50% - ${offset}px)`;
54
55const getContainerStyle = (
56 [xOffset = 0, yOffset = 0]: OffsetXY = [0, 0],

Callers 1

getContainerStyleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected