All files / src/components EC3Header.tsx

80% Statements 4/5
100% Branches 0/0
0% Functions 0/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 11 12 13        4x   4x         4x  
/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
import React from "react";
import type { Route } from "./EC3WidgetComponent";
import { WidgetHeader } from "./utils";
 
export interface EC3HeaderProps {
  currentRoute: Route;
}
export const EC3Header = ({ currentRoute }: EC3HeaderProps) => <WidgetHeader title={currentRoute.title} />;