Sha256: b1f6da3b1a8eeab647b50aa19fdd8815c91515b659d190ce7f5cbadafe7297a3
Contents?: true
Size: 537 Bytes
Versions: 8
Compression:
Stored size: 537 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
8 entries across 8 versions & 1 rubygems