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

Function getMessageStyle

packages/shared/src/components/alert/AlertPointer.tsx:76–83  ·  view source on GitHub ↗
(
  length = DEFAULT_POINTER_LENGTH,
)

Source from the content-addressed store, hash-verified

74
75const DEFAULT_POINTER_LENGTH = 6;
76const getMessageStyle = (
77 length = DEFAULT_POINTER_LENGTH,
78): Record<AlertPlacement, CSSProperties> => ({
79 left: { marginRight: length },
80 right: { marginLeft: length },
81 bottom: { marginBottom: -length },
82 top: { marginTop: -length },
83});
84
85export default function AlertPointer({
86 placement = AlertPlacement.Right,

Callers 1

AlertPointerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected