// ** MUI Imports
import Grid from '@mui/material/Grid'
import Typography from '@mui/material/Typography'

// ** Custom Components Imports
import CardSnippet from 'src/@core/components/card-snippet'

// ** Demo Components Imports
import ChipsIcon from 'src/views/components/chips/ChipsIcon'
import ChipsSizes from 'src/views/components/chips/ChipsSizes'
import ChipsArray from 'src/views/components/chips/ChipsArray'
import ChipsLight from 'src/views/components/chips/ChipsLight'
import ChipsColors from 'src/views/components/chips/ChipsColors'
import ChipsAvatar from 'src/views/components/chips/ChipsAvatar'
import ChipsRounded from 'src/views/components/chips/ChipsRounded'
import ChipsVariants from 'src/views/components/chips/ChipsVariants'
import ChipsDisabled from 'src/views/components/chips/ChipsDisabled'
import ChipsOnDelete from 'src/views/components/chips/ChipsOnDelete'
import ChipsClickable from 'src/views/components/chips/ChipsClickable'

// ** Source code imports
import * as source from 'src/views/components/chips/ChipsSourceCode'

const Pagination = () => {
  return (
    <Grid container spacing={6} className='match-height'>
      <Grid item xs={12} md={6}>
        <CardSnippet
          title='Chip Variants'
          code={{
            tsx: source.ChipsVariantsTSXCode,
            jsx: source.ChipsVariantsJSXCode
          }}
        >
          <Typography>
            Use <code>variant=&apos;outlined&apos;</code> prop with <code>Chip</code> component for outlined chip.
          </Typography>
          <ChipsVariants />
        </CardSnippet>
      </Grid>
      <Grid item xs={12} md={6}>
        <CardSnippet
          title='Disabled Chips'
          code={{
            tsx: source.ChipsDisabledTSXCode,
            jsx: source.ChipsDisabledJSXCode
          }}
        >
          <Typography>
            Use <code>disabled</code> prop for disabled chip.
          </Typography>
          <ChipsDisabled />
        </CardSnippet>
      </Grid>
      <Grid item xs={12} md={6}>
        <CardSnippet
          title='Colors'
          code={{
            tsx: source.ChipsColorsTSXCode,
            jsx: source.ChipsColorsJSXCode
          }}
        >
          <Typography sx={{ mb: 4 }}>
            Use <code>color</code> prop for different colored chips.
          </Typography>
          <ChipsColors />
        </CardSnippet>
      </Grid>
      <Grid item xs={12} md={6}>
        <CardSnippet
          title='onDelete'
          code={{
            tsx: source.ChipsOnDeleteTSXCode,
            jsx: source.ChipsOnDeleteJSXCode
          }}
        >
          <Typography sx={{ mb: 4 }}>
            Use <code>onDelete</code> prop for delete icon in a chip. Use <code>deleteIcon</code> prop to change the
            default delete icon.
          </Typography>
          <ChipsOnDelete />
        </CardSnippet>
      </Grid>
      <Grid item xs={12} md={6}>
        <CardSnippet
          title='Chip Sizes'
          code={{
            tsx: source.ChipsSizesTSXCode,
            jsx: source.ChipsSizesJSXCode
          }}
        >
          <Typography>
            Use <code>size=&apos;small&apos;</code> prop for small chip.
          </Typography>
          <ChipsSizes />
        </CardSnippet>
      </Grid>
      <Grid item xs={12} md={6}>
        <CardSnippet
          title='Clickable Chip'
          code={{
            tsx: source.ChipsClickableTSXCode,
            jsx: source.ChipsClickableJSXCode
          }}
        >
          <Typography>
            You can make any chip clickable by adding <code>clickable</code> prop and use <code>component=&apos;a&apos;</code> to
            make it a link.
          </Typography>
          <ChipsClickable />
        </CardSnippet>
      </Grid>
      <Grid item xs={12} md={6}>
        <CardSnippet
          title='Chip with Avatar'
          code={{
            tsx: source.ChipsAvatarTSXCode,
            jsx: source.ChipsAvatarJSXCode
          }}
        >
          <Typography>
            Use <code>Avatar</code> component inside <code>avatar</code> prop for a chip with avatar.
          </Typography>
          <ChipsAvatar />
        </CardSnippet>
      </Grid>
      <Grid item xs={12} md={6}>
        <CardSnippet
          title='Icon Chip'
          code={{
            tsx: source.ChipsIconTSXCode,
            jsx: source.ChipsIconJSXCode
          }}
        >
          <Typography>
            Use <code>icon</code> prop for an icon inside a chip.
          </Typography>
          <ChipsIcon />
        </CardSnippet>
      </Grid>
      <Grid item xs={12}>
        <CardSnippet
          title='Chips Array'
          code={{
            tsx: source.ChipsArrayTSXCode,
            jsx: source.ChipsArrayJSXCode
          }}
        >
          <Typography>You can make a list of chips that can make some or all chips deletable.</Typography>
          <ChipsArray />
        </CardSnippet>
      </Grid>
      <Grid item xs={12}>
        <CardSnippet
          title='Custom Light Chips'
          code={{
            tsx: source.ChipsLightTSXCode,
            jsx: source.ChipsLightJSXCode
          }}
        >
          <Typography>
            If you want to use light variant of the chips, you need to use our custom component with{' '}
            <code>skin=&apos;light&apos;</code> prop.
          </Typography>
          <ChipsLight />
        </CardSnippet>
      </Grid>
      <Grid item xs={12}>
        <CardSnippet
          title='Custom Rounded'
          code={{
            tsx: source.ChipsRoundedTSXCode,
            jsx: source.ChipsRoundedJSXCode
          }}
        >
          <Typography>
            Use prop <code>rounded</code> for a rounded chip.
          </Typography>
          <ChipsRounded />
        </CardSnippet>
      </Grid>
    </Grid>
  )
}

export default Pagination
