AddCollectionButton.tsx 857 B

1234567891011121314151617181920212223242526272829
  1. import React from 'react';
  2. import { Card } from 'react-bootstrap';
  3. import styled from 'styled-components';
  4. import constants from 'utils/strings/constants';
  5. import { CollectionIcon } from './CollectionSelector';
  6. const ImageContainer = styled.div`
  7. min-height: 192px;
  8. max-width: 192px;
  9. border: 1px solid #555;
  10. display: flex;
  11. align-items: center;
  12. justify-content: center;
  13. font-size: 42px;
  14. cursor: pointer;
  15. `;
  16. export default function AddCollectionButton({ showNextModal }) {
  17. return (
  18. <CollectionIcon style={{ margin: '10px' }} onClick={showNextModal}>
  19. <Card>
  20. <ImageContainer>+</ImageContainer>
  21. <Card.Text style={{ textAlign: 'center' }}>
  22. {constants.CREATE_COLLECTION}
  23. </Card.Text>
  24. </Card>
  25. </CollectionIcon>
  26. );
  27. }