mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-22 10:51:46 +03:00
8f49a724ce
# Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate):
25 lines
672 B
TypeScript
25 lines
672 B
TypeScript
import { InfoDisplayer } from "@/lib/components/ui/InfoDisplayer/InfoDisplayer";
|
|
|
|
import styles from "./Settings.module.scss";
|
|
|
|
import { ApiKeyConfig } from "../ApiKeyConfig";
|
|
import LanguageSelect from "../LanguageSelect/LanguageSelect";
|
|
import { LogoutModal } from "../LogoutModal/LogoutModal";
|
|
|
|
type InfoDisplayerProps = {
|
|
email: string;
|
|
};
|
|
|
|
export const Settings = ({ email }: InfoDisplayerProps): JSX.Element => {
|
|
return (
|
|
<div className={styles.settings_wrapper}>
|
|
<InfoDisplayer label="Email" iconName="email">
|
|
<span>{email}</span>
|
|
</InfoDisplayer>
|
|
<LanguageSelect />
|
|
<ApiKeyConfig />
|
|
<LogoutModal />
|
|
</div>
|
|
);
|
|
};
|