import classNames from 'classnames' import React from 'react' import { Text, Image, types, Plain } from 'react-bricks/rsc' import { FaGithub, FaLinkedin, FaTwitter } from 'react-icons/fa' import blockNames from '../../blockNames' import { textColors } from '../../colors' import { avatars } from '../../shared/defaultImages' interface Team2ColsItemProps { twitter?: string linkedin?: string github?: string picture: types.IImageSource memberName: types.TextValue jobTitle: types.TextValue } const Team2ColsItem: types.Brick = ({ twitter, linkedin, github, picture, memberName, jobTitle, }) => { return (
  • {
    (
    {props.children}
    )} placeholder="Name..." /> (
    {props.children}
    )} placeholder="Job title..." />
    {twitter && ( )} {linkedin && ( )} {github && ( )}
  • ) } Team2ColsItem.schema = { name: blockNames.Team2ColsItem, label: 'Member', category: 'team', hideFromAddMenu: true, playgroundLinkLabel: 'View source code on Github', playgroundLinkUrl: 'https://github.com/ReactBricks/reactbricks-starters/blob/main/packages/reactbricks-ui/nextjs-app/src/team/Team2Cols/Team2ColsItem.tsx', // tags: [], // Defaults when a new brick is added getDefaultProps: () => ({ title: 'Thick as a brick', memberName: 'Alvin Payne', jobTitle: 'Frontend Developer', twitter: 'alvin_payne', linkedin: 'alvin_payne', picture: avatars.AVATAR_MALE, }), // Sidebar Edit controls for props sideEditProps: [ { name: 'twitter', label: 'Twitter UserName', type: types.SideEditPropType.Text, }, { name: 'linkedin', label: 'Linkedin UserName', type: types.SideEditPropType.Text, }, { name: 'github', label: 'Github UserName', type: types.SideEditPropType.Text, }, ], } export default Team2ColsItem