mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-01 22:23:07 +00:00
13 lines
347 B
TypeScript
13 lines
347 B
TypeScript
export function getCodeInsets(theme: any) {
|
|
const padding =
|
|
typeof theme.spacing?.[3] === "number"
|
|
? theme.spacing[3]
|
|
: typeof theme.spacing?.[4] === "number"
|
|
? theme.spacing[4]
|
|
: 12;
|
|
const extraRight = theme.spacing[4];
|
|
const extraBottom = theme.spacing[3];
|
|
|
|
return { padding, extraRight, extraBottom };
|
|
}
|