import { t } from "@lingui/macro"; import { ScrollArea, Separator } from "@reactive-resume/ui"; import { useRef } from "react"; import { Copyright } from "@/client/components/copyright"; import { ThemeSwitch } from "@/client/components/theme-switch"; import { ExportSection } from "./sections/export"; import { InformationSection } from "./sections/information"; import { LayoutSection } from "./sections/layout"; import { LocaleSection } from "./sections/locale"; import { NotesSection } from "./sections/notes"; import { PageSection } from "./sections/page"; import { SharingSection } from "./sections/sharing"; import { StatisticsSection } from "./sections/statistics"; import { TemplateSection } from "./sections/template"; import { ThemeSection } from "./sections/theme"; import { TypographySection } from "./sections/typography"; import { SectionIcon } from "./shared/section-icon"; export const RightSidebar = () => { const containterRef = useRef(null); const scrollIntoView = (selector: string) => { const section = containterRef.current?.querySelector(selector); section?.scrollIntoView({ behavior: "smooth" }); }; return (
scrollIntoView("#template")} /> scrollIntoView("#layout")} /> scrollIntoView("#typography")} /> scrollIntoView("#theme")} /> scrollIntoView("#page")} /> scrollIntoView("#sharing")} /> scrollIntoView("#statistics")} /> scrollIntoView("#export")} /> scrollIntoView("#notes")} /> scrollIntoView("#information")} />
); };