|
| 1 | +import React from 'react' |
| 2 | +import ColoredBlock from '../../../design/components/atoms/ColoredBlock' |
| 3 | +import Flexbox from '../../../design/components/atoms/Flexbox' |
| 4 | +import styled from '../../../design/lib/styled' |
| 5 | +import Button from '../../../design/components/atoms/Button' |
| 6 | +import { mdiExport } from '@mdi/js' |
| 7 | +import ExportModal from '../Modal/contents/ExportModal' |
| 8 | +import { useModal } from '../../../design/lib/stores/modal' |
| 9 | + |
| 10 | +const FolderPageExportSection = () => { |
| 11 | + const { openModal } = useModal() |
| 12 | + |
| 13 | + return ( |
| 14 | + <FolderPageExportSectionContainer> |
| 15 | + <ColoredBlock variant='danger' className='export__section__block'> |
| 16 | + <Flexbox alignItems='flex-start' justifyContent='space-between'> |
| 17 | + <h5>BoostNote is getting discontinued</h5> |
| 18 | + |
| 19 | + <Button |
| 20 | + variant='icon' |
| 21 | + iconPath={mdiExport} |
| 22 | + onClick={() => { |
| 23 | + return openModal(<ExportModal />, { |
| 24 | + showCloseIcon: true, |
| 25 | + width: 'large', |
| 26 | + }) |
| 27 | + }} |
| 28 | + iconSize={16} |
| 29 | + > |
| 30 | + Learn more |
| 31 | + </Button> |
| 32 | + </Flexbox> |
| 33 | + <p> |
| 34 | + We thank you for your continued support. We regret to inform you that |
| 35 | + the service will end at the end of September. As such we recommend for |
| 36 | + users to export their data to make sure nothing is being lost. |
| 37 | + </p> |
| 38 | + </ColoredBlock> |
| 39 | + </FolderPageExportSectionContainer> |
| 40 | + ) |
| 41 | +} |
| 42 | + |
| 43 | +const FolderPageExportSectionContainer = styled.div` |
| 44 | + margin: ${({ theme }) => theme.sizes.spaces.df}px |
| 45 | + ${({ theme }) => theme.sizes.spaces.sm}px; |
| 46 | + .export__section__block { |
| 47 | + input { |
| 48 | + color: ${({ theme }) => theme.colors.text.subtle}; |
| 49 | + } |
| 50 | + h5 { |
| 51 | + color: ${({ theme }) => theme.colors.text.primary}; |
| 52 | + margin: ${({ theme }) => theme.sizes.spaces.sm}px 0; |
| 53 | + font-size: ${({ theme }) => theme.sizes.fonts.l}px; |
| 54 | + } |
| 55 | + p { |
| 56 | + color: ${({ theme }) => theme.colors.text.primary}; |
| 57 | + font-size: ${({ theme }) => theme.sizes.fonts.df}px; |
| 58 | + margin-bottom: ${({ theme }) => theme.sizes.spaces.sm}px; |
| 59 | + } |
| 60 | + .form__row__items { |
| 61 | + > * { |
| 62 | + margin-bottom: ${({ theme }) => theme.sizes.spaces.sm}px; |
| 63 | + } |
| 64 | + flex-wrap: wrap; |
| 65 | + } |
| 66 | + } |
| 67 | +` |
| 68 | + |
| 69 | +export default FolderPageExportSection |
0 commit comments