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

Version Path
playbook_ui-5.2.0.pre.alpha14 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.2.0.pre.alpha13 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-6.0.1 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.2.0.pre.alpha12 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-6.0.0 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.2.0.pre.alpha11 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.5.1.pre.alpha4 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.5.1.pre.alpha3 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.5.1.pre.alpha2 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.5.1.pre.alpha1 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.2.0.pre.alpha10 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.5.1 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.5.0 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.5.0.pre.alpha1 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.2.0.pre.alpha9 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.2.0.pre.alpha8 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.2.0.pre.alpha7 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.3.0.pre.alpha1 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.4.0 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-5.2.0.pre.alpha6 app/pb_kits/playbook/pb_filter/Filter/index.jsx