diff --git a/plugin-hrm-form/src/HrmFormPlugin.tsx b/plugin-hrm-form/src/HrmFormPlugin.tsx index d44ad3d7e4..90f5a02ae3 100644 --- a/plugin-hrm-form/src/HrmFormPlugin.tsx +++ b/plugin-hrm-form/src/HrmFormPlugin.tsx @@ -36,6 +36,7 @@ import { setUpReferrableResources } from './components/resources/setUpReferrable import QueuesView from './components/queuesView'; import TeamsView from './components/teamsView'; import { setUpCounselorToolkits } from './components/toolkits/setUpCounselorToolkits'; +import { setUpResourceMap } from './components/resourceMap/setUpResourceMap'; import { setUpTransferComponents } from './components/transfer/setUpTransferComponents'; import { subscribeNewMessageAlertOnPluginInit } from './notifications/newMessage'; import { subscribeReservedTaskAlert } from './notifications/reservedTask'; @@ -114,6 +115,7 @@ const setUpComponents = (featureFlags: FeatureFlags, setupObject: ReturnType { + return ( +
+

Here's the map!

+ +
+ ); +}; + +ResourceMap.displayName = 'ResourceMap'; + +export default ResourceMap; diff --git a/plugin-hrm-form/src/components/resourceMap/ResourceMapSideLink.tsx b/plugin-hrm-form/src/components/resourceMap/ResourceMapSideLink.tsx new file mode 100644 index 0000000000..2ef1b98fb9 --- /dev/null +++ b/plugin-hrm-form/src/components/resourceMap/ResourceMapSideLink.tsx @@ -0,0 +1,41 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + +/* eslint-disable react/prop-types */ +import { LinkIcon } from '@twilio-paste/icons/cjs/LinkIcon'; +import React from 'react'; +import { Template, SideLink, SideNavChildrenProps } from '@twilio/flex-ui'; + +type Props = SideNavChildrenProps & { showLabel: boolean; onClick: () => void }; + +const ResourceMapSideLink: React.FC = ({ showLabel, activeView, onClick }) => { + return ( + } + iconActive={} + isActive={activeView === 'resource-map'} + onClick={onClick} + data-testid="resource-map-side-link" + > +