import * as React from 'react';
import { Toolbar, Input, Button, Form } from '@fluentui/react-northstar';
import { HighlightIcon, FontColorIcon, SearchIcon, ItalicIcon } from '@fluentui/react-icons-northstar';
const HighlightPopup = ({ onConfirm }) => {
return (
);
};
const ToolbarExamplePopupShorthand = () => {
const [highlightOpen, setHighlightOpen] = React.useState(false);
const [fontColorActive, setFontColorActive] = React.useState(false);
return (
,
key: 'highlight',
active: highlightOpen,
title: 'Highlight',
popup: {
content: (
{
setHighlightOpen(false);
}}
/>
),
onOpenChange: (e, { open }) => {
setHighlightOpen(open);
},
open: highlightOpen,
},
},
{
icon: ,
key: 'font-color',
active: fontColorActive,
title: 'Font color',
popup: {
content: } placeholder="Search..." />,
onOpenChange: () => {
setFontColorActive(!fontColorActive);
},
},
},
{
icon: ,
key: 'italic',
title: 'Italic',
},
]}
/>
);
};
export default ToolbarExamplePopupShorthand;