Files
bodyshop/client/src/components/profile-content/profile-content.component.jsx
2020-01-06 15:42:16 -08:00

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" />
);
}
}