import React from "react"; import { Title, Card, Gauge, Flex, FlexItem, SectionSeparator, Body, Caption, } from "playbook-ui"; const data = [{ name: "Name", value: 10 }]; const GaugeComplex = (props) => ( <Flex align="stretch" {...props} > <Flex marginRight="sm" orientation="column" {...props} > <Body color="light" paddingBottom="sm" text="Total Abandoned" {...props} /> <Flex align="baseline" paddingBottom="xs" {...props} > <Title size={1} text="39" {...props} /> <Title color="light" size={3} text="calls" {...props} /> </Flex> <Caption size="xs" text="of 390" {...props} /> </Flex> <SectionSeparator alignSelf="stretch" marginRight="sm" orientation="vertical" {...props} /> <Flex orientation="column" wrap {...props} > <Body color="light" text="% Abandoned" {...props} /> <Flex wrap {...props} > <FlexItem fixedSize="150px" overflow="hidden" shrink {...props} > <Gauge chartData={data} disableAnimation height="150" id="gauge-complex" suffix="%" {...props} /> </FlexItem> </Flex> </Flex> </Flex> </Card> </FlexItem> </Flex> ); export default GaugeComplex;