import React from 'react';
import {
ApplicationLauncher,
ApplicationLauncherItem,
ApplicationLauncherGroup,
ApplicationLauncherSeparator
} from '@breakaway/preact-core/deprecated';
import pfLogoSm from '@breakaway/preact-core/src/demos/assets/pf-logo-small.svg';
const icon =
;
const appLauncherItems: React.ReactElement[] = [
Item without group title
,
Group 2 button
Group 2 anchor link
,
Group 3 button
Group 3 anchor link
];
export const ApplicationLauncherSectionsAndIcons: React.FunctionComponent = () => {
const [isOpen, setIsOpen] = React.useState(false);
const onToggle = (_event: any, isOpen: boolean) => setIsOpen(isOpen);
const onSelect = (_event: any) => setIsOpen((prevIsOpen) => !prevIsOpen);
return (
);
};