index.tsx 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import React from 'react';
  2. import Icon from '../Icon';
  3. import Button from '../Button';
  4. import Typography from '../Typography';
  5. import ExpansionPanel from '../ExpansionPanel';
  6. import Sliders from '../Sliders';
  7. import ColorSelect from '../ColorSelect';
  8. import { Group, Item, SliderWrapper } from '../../global/toolStyled';
  9. import data from './data';
  10. const Highlight = () => {
  11. return (
  12. <ExpansionPanel
  13. label={
  14. <Button shouldFitContainer align="left">
  15. <Icon glyph="highlight" style={{marginRight: '10px'}}/>
  16. Highlight Tools
  17. </Button>
  18. }
  19. >
  20. <Typography variant="subtitle" style={{marginTop: '8px'}}>Style</Typography>
  21. <Group>
  22. {data.lineType.map((ele) => (
  23. <Item key={ele.key}>
  24. <Icon glyph={ele.icon} />
  25. </Item>
  26. ))}
  27. </Group>
  28. <ColorSelect />
  29. <Typography variant="subtitle" style={{marginTop: '8px'}}>Opacity</Typography>
  30. <Group>
  31. <SliderWrapper>
  32. <Sliders />
  33. </SliderWrapper>
  34. 40%
  35. </Group>
  36. </ExpansionPanel>
  37. );
  38. };
  39. export default Highlight;