Files
paseo/packages/app/src/components/code-insets.ts
T
2026-02-04 13:04:45 +07:00

10 lines
339 B
TypeScript

export function getCodeInsets(theme: any) {
const currentHorizontal = theme.spacing[3] + theme.spacing[2];
const padding =
typeof theme.spacing?.[4] === "number" ? theme.spacing[4] : currentHorizontal;
const extraRight = theme.spacing[4];
const extraBottom = theme.spacing[3];
return { padding, extraRight, extraBottom };
}