Sha256: 3060f14148cd661c0ca2bab6572bb640fc46ebdf8fb27fb64b072729855fc8c6
Contents?: true
Size: 538 Bytes
Versions: 142
Compression:
Stored size: 538 Bytes
Contents
/* @flow */ import React from 'react' import FilterSingle, { FilterSingleProps } from './FilterSingle' import FilterDouble, { FilterDoubleProps } from './FilterDouble' type FilterProps = FilterSingleProps | FilterDoubleProps & { double?: boolean, } const Filter = ({ double = false, ...templateProps }: FilterProps) => ( <Choose> <When condition={double}> <FilterDouble {...templateProps} /> </When> <Otherwise> <FilterSingle {...templateProps} /> </Otherwise> </Choose> ) export default Filter
Version data entries
142 entries across 142 versions & 1 rubygems