import React, { memo, ReactNode } from 'react'; import styled from 'styled-components'; import isNil from 'lodash/isNil'; import Container from '@material-ui/core/Container'; import Grid from '@material-ui/core/Grid'; import IconButton from '@material-ui/core/IconButton'; import Tooltip from '@material-ui/core/Tooltip'; import Switch from '@material-ui/core/Switch'; import HistoryOutlinedIcon from '@material-ui/icons/History'; import VpnKeyIcon from '@material-ui/icons/VpnKey'; export interface IProps { className?: string; header?: ReactNode; children?: ReactNode; isEnabled?: boolean; onToggleEnableState?: (e: any, item: any) => any; onHistoryClick?: (e: any) => any; onChangePasswordClick?: (e: any) => any; } const Card = styled.div` background: linear-gradient(90deg, #0062b7, #0387f9, #0e8bf7); h4 { color: white; } p, span { color: #9eccc7; } `; export function Hightlights({ className, header, children, isEnabled, onToggleEnableState, onChangePasswordClick, onHistoryClick }: IProps) { return (