import React , { FC , ReactElement , memo } from 'react' ; import { Icon } from '@contentpi/ui' ; import { LOGOUT_LINK } from '@constants/links' ; import { StyledLogout } from './Logout.styled' ; interface iProps { router : any ; } const Logout = ( { router } ) : ReactElement => ( < StyledLogout > < div className = "logout" > < a href = { `${ LOGOUT_LINK ( router ) }?redirectTo=/dashboard` } title = "Logout" > < Icon type = "fas fa-power-off" / > < /a> < /div> < /StyledLogout>); export default memo ( Logout ) ;