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

Version Path
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-7.10.0 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-7.9.0 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-7.8.4 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-7.8.3 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-7.8.2 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-7.8.1 app/pb_kits/playbook/pb_filter/Filter/index.jsx
playbook_ui-7.8.0 app/pb_kits/playbook/pb_filter/Filter/index.jsx