import PropTypes from 'prop-types'; import { createGrid } from '@mui/system/Unstable_Grid'; import { OverridableComponent } from '@mui/types'; import { styled, useThemeProps } from '../styles'; import { Grid2TypeMap } from './Grid2Props'; const Grid2 = createGrid({ createStyledComponent: styled('div', { name: 'MuiGrid2', overridesResolver: (props, styles) => styles.root, }), componentName: 'MuiGrid2', // eslint-disable-next-line material-ui/mui-name-matches-component-name useThemeProps: (inProps) => useThemeProps({ props: inProps, name: 'MuiGrid2' }), }) as OverridableComponent; Grid2.propTypes /* remove-proptypes */ = { // ----------------------------- Warning -------------------------------- // | These PropTypes are generated from the TypeScript type definitions | // | To update them edit TypeScript types and run "yarn proptypes" | // ---------------------------------------------------------------------- /** * The content of the component. */ children: PropTypes.node, /** * @ignore */ sx: PropTypes.oneOfType([ PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object, ]), } as any; export default Grid2;