import React, { ReactNode } from "react"; import classes from "./classes.module.scss"; import Header from "@Front/Components/DesignSystem/Header"; import Version from "@Front/Components/DesignSystem/Version"; import Image, { StaticImageData } from "next/image"; import classNames from "classnames"; type IProps = { title: string; children?: ReactNode; /** * @description scroll top with number or disabled with null */ scrollTop: number | null; image: StaticImageData; type: "background" | "image"; }; type IState = {}; export default class DefaultDoubleSidePage extends React.Component { public static defaultProps = { scrollTop: 0, type: "background", }; public override render(): JSX.Element { return (
{this.props.children}
{this.props.type === "image" && (
{"right
)} {this.props.type === "background" && (
{"right
)}
); } public override componentDidMount() { window.document.title = this.props.title; if (this.props.scrollTop !== null) { window.scrollTo(0, this.props.scrollTop); } } }