Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

362 B
Raw Blame
import type { SxProps, Theme } from "@mui/material";
import type { SystemStyleObject } from "@mui/system";

// Array.isArray does not preserve MUI's SxProps array type.
export const isSxArray = (
    sx: SxProps<Theme>,
): sx is readonly (
    | boolean
    | SystemStyleObject<Theme>
    | ((theme: Theme) => SystemStyleObject<Theme>)
)[] => Array.isArray(sx);