/* @flow */ import React, { Node } from 'react' import classnames from 'classnames' import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props' import { globalProps } from '../utilities/globalProps.js' import { Checkbox, ListItem, Radio } from '..' type SelectableListItemProps = { aria?: object, children: array | Node, checked?: boolean, className?: string, data?: object, defaultChecked?: boolean, id?: string, label?: string, text?: string, name?: string, value?: string, variant?: string, onChange: (boolean)=>void, } const SelectableListItem = ({ aria = {}, checked = false, children, className, data = {}, defaultChecked, id, label, text, name = '', value = '', variant, onChange = () => {}, ...props }: SelectableListItemProps) => { const ariaProps = buildAriaProps(aria) const dataProps = buildDataProps(data) const classes = classnames( buildCss('pb_selectable_list_item_kit'), globalProps(props), className ) return (
{children} {children} {children}
) } export default SelectableListItem