rotz 1.2.1

Fully cross platform dotfile manager written in rust.
import React from 'react';
import clsx from 'clsx';
import styles from './styles.module.css';

export type FeatureItem = {
  title: string;
  Svg?: React.ComponentType<React.ComponentProps<'svg'>>;
  emoji?: string;
  description: JSX.Element;
};

function Feature({ title, Svg, emoji, description }: FeatureItem) {
  return (
    <div className={clsx('col col--4')}>
      <div className="text--center">
        {Svg ? <Svg className={styles.featureSvg} role="img" /> : <></>}
        {emoji ? <span style={{ fontSize: '3.5em' }}>{emoji}</span> : <></>}
      </div>
      <div className="text--center padding-horiz--md">
        <h3>{title}</h3>
        <p>{description}</p>
      </div>
    </div>
  );
}

export function Features({ features }: { features: FeatureItem[] }): JSX.Element {
  return (
    <section className={styles.features}>
      <div className="container">
        <div className="row">
          {features.map((props, idx) => (
            <Feature key={idx} {...props} />
          ))}
        </div>
      </div>
    </section>
  );
}