All files / app/features/profile/view UserTabContext.tsx

100% Statements 3/3
0% Branches 0/1
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 113x       3x       17x    
import { TabContext } from "@material-ui/lab";
import { PropsWithChildren } from "react";
import { UserTab } from "routes";
 
export default function UserTabContext({
  children,
  tab = "about",
}: PropsWithChildren<{ tab: UserTab }>) {
  return <TabContext value={tab}>{children}</TabContext>;
}