import { Button, } from '../Button'; import { Choice, } from '../../../lib/ink/inkjs/src/Choice'; import classNames from 'classnames'; import { InkSectionOwnProps, } from './InkSectionOwnProps'; import { List, } from '../List'; import { Section, } from '../Section'; import * as React from 'react' import styles from './index.less'; export const InkSection: React.FunctionComponent = ({ children, choices, choicesVisible, className, onClick, }) => (
{children} {choicesVisible ? {(choices as Choice[]).map(({ text }, key) => (
))}
: null}
);