UNPKG

react-garden

Version:

React + TypeScript + ThreeJS app using Material UI on NextJS, Apollo Client, GraphQL + WordPress REST APIs, for ThreeD web development.. a part of the threed.ai code family.

36 lines (30 loc) 1.04 kB
// ** MUI Imports import Box from '@mui/material/Box' import Button from '@mui/material/Button' import TextField from '@mui/material/TextField' // ** Icons Imports import ExportVariant from 'mdi-material-ui/ExportVariant' const TableHeader = props => { // ** Props const { handleFilter, toggle, value } = props return ( <Box sx={{ p: 5, pb: 3, display: 'flex', flexWrap: 'wrap', alignItems: 'center', justifyContent: 'space-between' }}> <Button sx={{ mr: 4, mb: 2 }} color='secondary' variant='outlined' startIcon={<ExportVariant fontSize='small' />}> Export </Button> <Box sx={{ display: 'flex', flexWrap: 'wrap', alignItems: 'center' }}> <TextField size='small' value={value} sx={{ mr: 4, mb: 2 }} placeholder='Search User' onChange={e => handleFilter(e.target.value)} /> <Button sx={{ mb: 2 }} onClick={toggle} variant='contained'> Add User </Button> </Box> </Box> ) } export default TableHeader