// @flow strict import * as React from 'react'; import classify from '../../utils/classify'; import {Icon} from '../Icon'; import {TEXT_COLORS, TitleMedium} from '../Text'; import css from './PageTitle.module.css'; type ClassNames = $ReadOnly<{ wrapper?: string, leftSlot?: string, rightSlot?: string, }>; export type PageTitleProps = { classNames?: ClassNames, children?: React.Node, pageNameKey?: string, }; export const PAGE_NAME_LIST = Object.freeze({ dashboard: { title: 'Dashboard', iconName: 'house', iconType: 'duotone', iconSwapOpacity: true, }, engage: { title: 'Engage', iconName: 'bullseye-pointer', iconType: 'duotone', iconSwapOpacity: true, }, trm: { title: 'TRM', iconName: 'screen-users', iconType: 'duotone', iconSwapOpacity: true, }, analytics: { title: 'Analytics', iconName: 'chart-column', iconType: 'duotone', iconSwapOpacity: true, }, messaging: { title: 'Messaging', iconName: 'messages', iconType: 'duotone', iconSwapOpacity: true, }, chatbot: { title: 'Chatbot', iconName: 'message-bot', iconType: 'duotone', iconSwapOpacity: true, }, referrals: { title: 'Referrals', iconName: 'user-check', iconType: 'duotone', iconSwapOpacity: true, }, records: { title: 'Records', iconName: 'folder-open', iconType: 'duotone', iconSwapOpacity: true, }, bulkCleanup: { title: 'Bulk Cleanup', iconName: 'retweet', iconType: 'duotone', iconSwapOpacity: true, }, support: { title: 'Support', iconName: 'headset', iconType: 'duotone', iconSwapOpacity: true, }, audit: { title: 'Audit', iconName: 'print-magnifying-glass', iconType: 'duotone', iconSwapOpacity: true, }, timeline: { title: 'Timeline', iconName: 'timeline', iconType: 'duotone', iconSwapOpacity: true, }, people: { title: 'People', iconName: 'people-group', iconType: 'duotone', iconSwapOpacity: true, }, contacts: { title: 'Contacts', iconName: 'address-card', iconType: 'duotone', iconSwapOpacity: true, }, contacts2: { title: 'Contacts', iconName: 'calendars', iconType: 'duotone', iconSwapOpacity: true, }, contacts3: { title: 'Contacts', iconName: 'browser', iconType: 'duotone', iconSwapOpacity: true, }, }); export type TabSlotProps = { children?: React.Node, className: string, ... }; export const TabSlot = ({ children, className, ...props }: TabSlotProps): React.Node => (