import React from 'react';
import { Link } from '@reach/router';
import {
ApplicationLauncher,
ApplicationLauncherItem,
ApplicationLauncherContent
} from '@breakaway/preact-core/deprecated';
import pfLogoSm from '@breakaway/preact-core/src/demos/assets/pf-logo-small.svg';
const icon: JSX.Element =
;
const linkStyle: React.CSSProperties = {
color: 'var(--pf-v5-c-app-launcher__menu-item--Color)',
textDecoration: 'none'
};
const appLauncherItems: React.ReactElement[] = [
@reach/router Link
}
/>,
@reach/router Link with icon
}
/>,
Application 1 (anchor link)
,
alert('Clicked item 2')}>
Application 2 (button with onClick)
,
Unavailable application
];
export const ApplicationLauncherRouterLink: React.FunctionComponent = () => {
const [isOpen, setIsOpen] = React.useState(false);
const onToggle = (_event: any, isOpen: boolean) => setIsOpen(isOpen);
const onSelect = (_event: any) => setIsOpen((prevIsOpen) => !prevIsOpen);
return ;
};