mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-16 23:16:48 +00:00
15 lines
321 B
JavaScript
15 lines
321 B
JavaScript
import { useGlobal } from '@/lib/global'
|
|
import * as ThemeMap from '@/themes'
|
|
|
|
/**
|
|
* 自定义404界面
|
|
* @returns {JSX.Element}
|
|
* @constructor
|
|
*/
|
|
|
|
export default function Custom404 (props) {
|
|
const { theme } = useGlobal()
|
|
const ThemeComponents = ThemeMap[theme]
|
|
return <ThemeComponents.Layout404 {...props}/>
|
|
}
|