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