mirror of
https://github.com/khairul169/code-share.git
synced 2026-10-24 11:53:58 +07:00
feat: rebuild app using vike
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { usePageContext } from "~/renderer/context";
|
||||
|
||||
const Page = () => {
|
||||
const pageContext = usePageContext();
|
||||
let { abortReason } = pageContext;
|
||||
|
||||
if (!abortReason) {
|
||||
abortReason = pageContext.is404
|
||||
? "Page not found."
|
||||
: "Something went wrong.";
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<p style={{ fontSize: "1.3em" }}>{abortReason}</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Page;
|
||||
Reference in New Issue
Block a user