import * as React from 'react'; import { Divider, ICSSInJSStyle, Segment, Text } from '@fluentui/react-northstar'; import * as _ from 'lodash'; import ComponentExampleTitle from './ComponentExample/ComponentExampleTitle'; import BehaviorDescription from './BehaviorDescription'; import { BehaviorVariantionInfo } from '../../types'; export const behaviorVariantDisplayName = (fileName: string) => { const divided = _.startCase(fileName.replace(/Behavior\.ts$/, '')); return _.upperFirst(_.lowerCase(divided)); }; export const exampleStyle: ICSSInJSStyle = { boxShadow: '0 1px 2px rgba(0, 0, 0, 0.2)', }; type BehaviorCardProps = { variation: BehaviorVariantionInfo; }; export class BehaviorCard extends React.Component { render() { const { variation } = this.props; return ( <>
{variation.description && ( <> Description:
)} {variation.specification && ( <> {variation.description &&
} Specification:
)}

); } }