19 lines
494 B
JavaScript
19 lines
494 B
JavaScript
import React from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
import AlertComponent from "../alert/alert.component";
|
|
|
|
export default function ProfileContent({ sidebarSelection }) {
|
|
const { t } = useTranslation();
|
|
|
|
switch (sidebarSelection.key) {
|
|
case "profile":
|
|
return <div>Profile stuff</div>;
|
|
case "shop":
|
|
return <div>Shop stuff</div>;
|
|
default:
|
|
return (
|
|
<AlertComponent message={t("profile.errors.state")} type="error" />
|
|
);
|
|
}
|
|
}
|