|
1 | 1 | import * as React from 'react'
|
2 |
| -import Link from 'next/link' |
3 |
| -import Image from 'next/image' |
4 | 2 | import dynamic from 'next/dynamic'
|
5 |
| -import cs from 'classnames' |
| 3 | +import Image from 'next/image' |
| 4 | +import Link from 'next/link' |
6 | 5 | import { useRouter } from 'next/router'
|
7 |
| -import { useSearchParam } from 'react-use' |
8 |
| -import BodyClassName from 'react-body-classname' |
9 |
| -import { PageBlock } from 'notion-types' |
10 |
| - |
11 |
| -import TweetEmbed from 'react-tweet-embed' |
12 | 6 |
|
| 7 | +import cs from 'classnames' |
| 8 | +import { PageBlock } from 'notion-types' |
| 9 | +// utils |
| 10 | +import { formatDate, getBlockTitle, getPageProperty } from 'notion-utils' |
| 11 | +import BodyClassName from 'react-body-classname' |
13 | 12 | // core notion renderer
|
14 | 13 | import { NotionRenderer } from 'react-notion-x'
|
| 14 | +import TweetEmbed from 'react-tweet-embed' |
| 15 | +import { useSearchParam } from 'react-use' |
15 | 16 |
|
16 |
| -// utils |
17 |
| -import { getBlockTitle, getPageProperty, formatDate } from 'notion-utils' |
18 |
| -import { mapPageUrl, getCanonicalPageUrl } from 'lib/map-page-url' |
| 17 | +import * as config from 'lib/config' |
| 18 | +import * as types from 'lib/types' |
19 | 19 | import { mapImageUrl } from 'lib/map-image-url'
|
| 20 | +import { getCanonicalPageUrl, mapPageUrl } from 'lib/map-page-url' |
20 | 21 | import { searchNotion } from 'lib/search-notion'
|
21 | 22 | import { useDarkMode } from 'lib/use-dark-mode'
|
22 |
| -import * as types from 'lib/types' |
23 |
| -import * as config from 'lib/config' |
24 | 23 |
|
| 24 | +import { Footer } from './Footer' |
| 25 | +import { GitHubShareButton } from './GitHubShareButton' |
25 | 26 | // components
|
26 | 27 | import { Loading } from './Loading'
|
| 28 | +import { NotionPageHeader } from './NotionPageHeader' |
27 | 29 | import { Page404 } from './Page404'
|
28 |
| -import { PageHead } from './PageHead' |
29 | 30 | import { PageAside } from './PageAside'
|
30 |
| -import { Footer } from './Footer' |
31 |
| -import { NotionPageHeader } from './NotionPageHeader' |
32 |
| -import { GitHubShareButton } from './GitHubShareButton' |
33 |
| - |
| 31 | +import { PageHead } from './PageHead' |
34 | 32 | import styles from './styles.module.css'
|
35 | 33 |
|
36 | 34 | // -----------------------------------------------------------------------------
|
|
0 commit comments