github.com/Jeffail/benthos/v3@v3.65.0/website/src/theme/ComponentCard/index.js (about)

     1  import React from 'react';
     2  
     3  import Link from '@docusaurus/Link';
     4  import styles from './styles.module.css';
     5  
     6  function ComponentCard(props) {
     7    const {
     8      type,
     9      component,
    10    } = props;
    11  
    12    return (
    13      <Link to={`/docs/components/${type}/${component.name}`} className={styles.componentCard}>
    14        <strong>{component.name}</strong>
    15      </Link>
    16    );
    17  }
    18  
    19  export default ComponentCard;