12 lines
274 B
TypeScript
12 lines
274 B
TypeScript
export function resolveMarkdownFloatingActionsBottom({
|
|
keyboardLift,
|
|
restingBottom,
|
|
liftedClearance
|
|
}: {
|
|
keyboardLift: number
|
|
restingBottom: number
|
|
liftedClearance: number
|
|
}): number {
|
|
return keyboardLift > 0 ? keyboardLift + liftedClearance : restingBottom
|
|
}
|