import React ,{useState,createContext} from 'react'
import RoleTable from './RoleTable';
import Search from './Search'
import './index.scss'
import Newadd from './newadd'
export default function Role() {
    // let valueSch={}
    let [valueSch,setValueSch]=useState<any>({})
    const getValue=(value:any)=>{
        console.log(value);
        // console.log(...value);
        // valueSch={...value}
        setValueSch(value)
        console.log({...valueSch});
        
    }
    const tableData=(setdata:any)=>{

    }
    return (
            <div className='roleBox'>
                <Search getValue={getValue}/>
                <Newadd/>
                <RoleTable valueSch={valueSch}/>
            </div>
    )
}