import classNames from 'classnames' import { Link, Text, types } from 'react-bricks/frontend' import { FiChevronRight } from 'react-icons/fi' import blockNames from '../blockNames' interface HeaderMenuSubItemProps { linkPath: string linkText: types.TextValue linkDescription: types.TextValue } const HeaderMenuSubItem: types.Brick = ({ linkPath, linkText, linkDescription, }) => { return (
(
{children}
)} />
(
{children}
)} />
) } HeaderMenuSubItem.schema = { name: blockNames.HeaderMenuSubItem, label: 'Submenu Item', category: 'layout', hideFromAddMenu: true, playgroundLinkLabel: 'View source code on Github', playgroundLinkUrl: 'https://github.com/ReactBricks/reactbricks-starters/blob/main/packages/reactbricks-ui/nextjs-pages/src/layout/HeaderMenuSubItem.tsx', getDefaultProps: () => ({ linkText: 'Changelog', linkDescription: 'Release notes for all React Bricks versions', linkPath: '/', }), sideEditProps: [ { name: 'linkPath', label: 'Link to...', type: types.SideEditPropType.Text, }, ], } export default HeaderMenuSubItem