// ** React Imports import { FormEvent, useState } from 'react' // ** MUI Imports import Box from '@mui/material/Box' import Dialog from '@mui/material/Dialog' import Button from '@mui/material/Button' import Checkbox from '@mui/material/Checkbox' import TextField from '@mui/material/TextField' import Typography from '@mui/material/Typography' import DialogTitle from '@mui/material/DialogTitle' import DialogContent from '@mui/material/DialogContent' import FormControlLabel from '@mui/material/FormControlLabel' interface TableHeaderProps { value: string handleFilter: (val: string) => void } const TableHeader = (props: TableHeaderProps) => { // ** Props const { value, handleFilter } = props // ** State const [open, setOpen] = useState(false) const handleDialogToggle = () => setOpen(!open) const onSubmit = (e: FormEvent) => { setOpen(false) e.preventDefault() } return ( <> handleFilter(e.target.value)} /> [`${theme.spacing(5)} !important`, `${theme.spacing(15)} !important`], pt: theme => [`${theme.spacing(8)} !important`, `${theme.spacing(12.5)} !important`] }} > Add New Permission Permissions you may use and assign to your users. [`${theme.spacing(5)} !important`, `${theme.spacing(15)} !important`], pb: theme => [`${theme.spacing(8)} !important`, `${theme.spacing(12.5)} !important`] }} > onSubmit(e)} sx={{ mt: 4, mx: 'auto', width: '100%', maxWidth: 360, display: 'flex', alignItems: 'center', flexDirection: 'column' }} > } label='Set as core permission' /> :last-child': { mr: '0 !important' } }}> ) } export default TableHeader