mirror of
https://github.com/yudejp/yude.jp.git
synced 2025-05-13 07:28:41 +00:00
24 lines
604 B
TypeScript
24 lines
604 B
TypeScript
import { useRecoilState } from 'recoil'
|
|
|
|
import Profile from "./Profile"
|
|
import Links from "./Links"
|
|
import Keys from "./Keys"
|
|
import Spotify from "./Spotify"
|
|
import Services from "./Services"
|
|
|
|
import { currentPage, Pages } from "./Menu"
|
|
|
|
|
|
|
|
export default function ContentRenderer() {
|
|
const [page, _] = useRecoilState(currentPage);
|
|
return (
|
|
<>
|
|
{ page === Pages.Profile && <><Profile /><Spotify /></> }
|
|
{ page === Pages.Links && <Links /> }
|
|
{ page === Pages.Keys && <Keys /> }
|
|
{ page === Pages.Services && <Services /> }
|
|
</>
|
|
)
|
|
}
|