import { Link, Text, types } from 'react-bricks/rsc' import blockNames from '../blockNames' import { textColors } from '../colors' interface FooterLinkProps { linkPath: string linkText: types.TextValue } const FooterLink: types.Brick = ({ linkPath, linkText }) => { return ( (
{children}
)} /> ) } FooterLink.schema = { name: blockNames.FooterLink, label: 'Link', 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/FooterLink.tsx', // tags: [], // Defaults when a new brick is added getDefaultProps: () => ({ linkText: 'Pricing', linkPath: '/', }), // Sidebar Edit controls for props sideEditProps: [ { name: 'linkPath', label: 'Link to...', type: types.SideEditPropType.Text, }, ], } export default FooterLink