/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import {FunctionComponent} from 'preact'; import {FlowSegment} from '../common'; import {classNames, useHashState, useFlowResult} from '../util'; import {Separator} from '../common'; const SidebarFlowStep: FunctionComponent<{ mode: LH.Result.GatherMode, href: string, label: string, isCurrent: boolean, }> = ({href, label, mode, isCurrent}) => { return (
{label}
); }; const SidebarFlowSeparator: FunctionComponent = () => { return (
); }; export const SidebarFlow: FunctionComponent = () => { const flowResult = useFlowResult(); const hashState = useHashState(); return (
{ flowResult.steps.map((step, index) => { const {lhr, name} = step; return <> { lhr.gatherMode === 'navigation' && index !== 0 ? : undefined } ; }) }
); };