The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
export type TerminalSendButtonHintPosition = { left: number; top: number };
const FINGER_OFFSET_RIGHT = -22;
const FINGER_OFFSET_BOTTOM = -18;
// The finger overlaps the send button's bottom-right corner.
export const getTerminalSendButtonHintPosition = ({
bottom,
right,
}: {
bottom: number;
right: number;
}): TerminalSendButtonHintPosition => ({
left: right + FINGER_OFFSET_RIGHT,
top: bottom + FINGER_OFFSET_BOTTOM,
});