import classNames from 'classnames' import * as React from 'react' import { Repeater, types } from 'react-bricks/rsc' import { LayoutProps, neutralBackgroundSideGroup, paddingBordersSideGroup, } from '../../LayoutSideProps' import { customers } from '../../shared/defaultImages' import blockNames from '../../blockNames' import { bgColors } from '../../colors' import Container from '../../shared/components/Container' import Section from '../../shared/components/Section' export interface CustomersProps extends LayoutProps { grayscale?: boolean customers: types.RepeaterItems } const Customers: types.Brick = ({ backgroundColor, borderTop, borderBottom, paddingTop, paddingBottom, grayscale, customers, }) => { return (
= 4 && customers.length <= 5, } )} >
) } Customers.schema = { name: blockNames.Customers, label: 'Customers', category: 'logos', tags: ['customers', 'logos', 'logo cloud'], playgroundLinkLabel: 'View source code on Github', playgroundLinkUrl: 'https://github.com/ReactBricks/reactbricks-starters/blob/main/packages/reactbricks-ui/nextjs-app/src/logos/Customers/Customers.tsx', previewImageUrl: `/bricks-preview-images/${blockNames.Customers}.png`, getDefaultProps: () => ({ backgroundColor: bgColors.WHITE.value, paddingTop: '12', paddingBottom: '12', borderTop: 'none', borderBottom: 'none', grayscale: true, customers: [ { image: customers.WOOSMAP, }, { image: customers.CAPBASE, }, { image: customers.CASAVO, }, { image: customers.EVERFUND, }, { image: customers.NEOSKOP, }, ], }), repeaterItems: [ { name: 'customers', itemType: blockNames.Customer, itemLabel: 'Customer', min: 0, max: 12, }, ], sideEditProps: [ neutralBackgroundSideGroup, paddingBordersSideGroup, { groupName: 'Logos', defaultOpen: true, props: [ { name: 'grayscale', label: 'Greyscale', type: types.SideEditPropType.Boolean, }, ], }, ], } export default Customers