import blockNames from '../blockNames' import React from 'react' import { Text, types, Link } from 'react-bricks/rsc' import classNames from 'classnames' import { FiChevronRight } from 'react-icons/fi' 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-app/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