import homeStyles from "@/app/components/home.module.scss"; import { IconButton } from "@/app/components/button"; import GithubIcon from "@/app/icons/github.svg"; import ReturnIcon from "@/app/icons/return.svg"; import Locale from "@/app/locales"; import HistoryIcon from "@/app/icons/history.svg"; import { Path, REPO_URL } from "@/app/constant"; import { useNavigate } from "react-router-dom"; import dynamic from "next/dynamic"; import { SideBarContainer, SideBarBody, SideBarTail, useDragSideBar, useHotKey, } from "@/app/components/sidebar"; const SdPanel = dynamic( async () => (await import("@/app/components/sd")).SdPanel, { loading: () => null, }, ); export function SdNew() { useHotKey(); const { onDragStart, shouldNarrow } = useDragSideBar(); const navigate = useNavigate(); return (
{
} bordered title={Locale.Sd.Actions.ReturnHome} onClick={() => navigate(Path.Home)} />
}
Stability
} bordered title={Locale.Sd.Actions.History} onClick={() => navigate(Path.Sd)} />
} shadow /> } />
); }