import * as React from 'react' import { Image, Plain, Text, types } from 'react-bricks/frontend' import { avatars } from '../../shared/defaultImages' import blockNames from '../../blockNames' import { textColors } from '../../colors' export interface TestimonialProps { authorName: types.TextValue authorJobTitle: types.TextValue avatarImage: types.IImageSource quote: types.TextValue } const Testimonial3ColsItem: types.Brick = ({ authorName, authorJobTitle, avatarImage, quote, }) => { return (
(
{props.children}
)} placeholder="Quote..." renderPlaceholder={(props) => { return {props.children} }} propName="quote" value={quote} /> {
(
{props.children}
)} placeholder="Name..." propName="authorName" value={authorName} /> (
{props.children}
)} placeholder="Job title..." propName="authorJobTitle" value={authorJobTitle} />
) } Testimonial3ColsItem.schema = { name: blockNames.Testimonial3ColsItem, label: 'Single Testimonial', category: 'testimonials', hideFromAddMenu: true, playgroundLinkLabel: 'View source code on Github', playgroundLinkUrl: 'https://github.com/ReactBricks/reactbricks-starters/blob/main/packages/reactbricks-ui/nextjs-pages/src/testimonials/Testimonial3Cols/Testimonial3ColsItem.tsx', getDefaultProps: () => ({ quote: "I'm smart enough to know that I'm dumb.", authorName: 'Richard Feynman', authorJobTitle: 'Theoretical physicist', avatarImage: avatars.PLACEHOLDER1, }), } export default Testimonial3ColsItem