import * as React from 'react'; import { css } from '@patternfly/react-styles'; import styles from '@patternfly/react-styles/css/components/AppLauncher/app-launcher'; import { ApplicationLauncherIcon } from './ApplicationLauncherIcon'; import { ApplicationLauncherText } from './ApplicationLauncherText'; import ExternalLinkAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-alt-icon'; import { ApplicationLauncherItemContext } from './ApplicationLauncherItemContext'; export interface ApplicationLauncherContentProps { /** Main content to be rendered */ children: React.ReactNode; } export const ApplicationLauncherContent: React.FunctionComponent = ({ children }: ApplicationLauncherContentProps) => ( {({ isExternal, icon }) => ( <> {icon && {icon}} {icon ? {children} : children} {isExternal && ( <> (opens new window) )} )} ); ApplicationLauncherContent.displayName = 'ApplicationLauncherContent';