index.tsx 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import React from 'react';
  2. import Icon from '../Icon';
  3. import Drawer from '../Drawer';
  4. import Typography from '../Typography';
  5. import Divider from '../Divider';
  6. import {
  7. AnnotationBox, PageNumber, Content, Info,
  8. } from './styled';
  9. import { Separator } from '../../global/otherStyled';
  10. import {
  11. Wrapper, Head, Body, IconWrapper,
  12. } from '../../global/sidebarStyled';
  13. type Props = {
  14. isActive?: boolean;
  15. close: () => void;
  16. };
  17. const Annotations: React.FunctionComponent<Props> = ({
  18. isActive = false,
  19. close,
  20. }: Props) => (
  21. <Drawer anchor="right" open={isActive}>
  22. <Wrapper>
  23. <Head>
  24. <IconWrapper>
  25. <Icon glyph="right-back" onClick={close} />
  26. </IconWrapper>
  27. <Separator />
  28. <IconWrapper>
  29. <Icon glyph="sort" />
  30. </IconWrapper>
  31. <IconWrapper>
  32. <Icon glyph="annotation-export" />
  33. </IconWrapper>
  34. <IconWrapper>
  35. <Icon glyph="import" />
  36. </IconWrapper>
  37. </Head>
  38. <Body>
  39. <Typography light>2 Annotations</Typography>
  40. <Divider orientation="horizontal" />
  41. <PageNumber>Page 1</PageNumber>
  42. <AnnotationBox>
  43. <Content>
  44. If the Photographer fails to appear at the place and time specified above,
  45. the deposit shall be refunded to the Client.
  46. </Content>
  47. <Info>
  48. Gameboy
  49. <Separator />
  50. 2016/07/28 18:18
  51. </Info>
  52. </AnnotationBox>
  53. </Body>
  54. </Wrapper>
  55. </Drawer>
  56. );
  57. export default Annotations;