import { OverlayTrigger, Tooltip } from 'react-bootstrap'; import { CurrencyCircleDollar, Package, Toolbox } from '@phosphor-icons/react'; function ToggleValues( props ) { let { theRow, toggleValue } = props; let { accountd, active, stockd, servicd } = theRow; return ( <>
status
( toggle the active state )} placement="bottom" > { toggleValue( 4, theRow ); } }> {active && ( active ) } {!active && ( inactive ) } { " " } ( toggle accountd access )} placement="bottom" > { toggleValue( 1, theRow ); } }> {accountd && ( ) } {!accountd && ( ) } { " " } ( toggle servicd access )} placement="bottom" > { toggleValue( 2, theRow ); } }> {servicd && ( ) } {!servicd && ( ) } { " " } ( toggle stockd access )} placement="bottom" > { toggleValue( 3, theRow ); } }> {stockd && ( ) } {!stockd && ( ) }
); } export default ToggleValues;