import Typography, { ITypo, ITypoColor } from "@Front/Components/DesignSystem/Typography";
import { IDashBoardFolder } from "@Front/Components/LayoutTemplates/DefaultNotaryDashboard";

import BasePage from "../Base";
import classes from "./classes.module.scss";
import DefaultCollaboratorDashboard from "@Front/Components/LayoutTemplates/DefaultCollaboratorDashboard";

type IProps = {};
type IState = {
	selectedFolder: IDashBoardFolder | null;
	isArchivedModalOpen: boolean;
};
export default class Folder extends BasePage<IProps, IState> {
	public constructor(props: IProps) {
		super(props);
		this.state = {
			selectedFolder: null,
			isArchivedModalOpen: false,
		};
		this.onSelectedFolder = this.onSelectedFolder.bind(this);
	}

	// TODO: Message if the user has not created any folder yet
	public override render(): JSX.Element {
		return (
			<DefaultCollaboratorDashboard title={"Dossier"} mobileBackText={"Liste des collaborateurss"}>
				<div className={classes["root"]}>
					<div className={classes["no-folder-selected"]}>
						<Typography typo={ITypo.H1Bis}>Informations du collaboraeur</Typography>
						<div className={classes["choose-a-folder"]}>
							<Typography typo={ITypo.P_18} color={ITypoColor.GREY}>
								Sélectionnez un collaborateur
							</Typography>
						</div>
					</div>
				</div>
			</DefaultCollaboratorDashboard>
		);
	}

	private onSelectedFolder(folder: IDashBoardFolder): void {
		this.setState({ selectedFolder: folder });
	}
}
