( length = DEFAULT_POINTER_LENGTH, )
| 74 | |
| 75 | const DEFAULT_POINTER_LENGTH = 6; |
| 76 | const 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 | |
| 85 | export default function AlertPointer({ |
| 86 | placement = AlertPlacement.Right, |