Sha256: 90e21f0c0da4f1af54f35759b3b9e99a7809b13f5386bd867d65cd5874a82d59

Contents?: true

Size: 651 Bytes

Versions: 359

Compression:

Stored size: 651 Bytes

Contents

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): React.ReactElement => {
  const displayFilter = () => {
    if (double === true) {
      return (
        <FilterDouble {...templateProps} />
      )
    } else {
      return (
        <FilterSingle {...templateProps} />
      )
    }
  }
  return (
    <>
      {displayFilter()}
    </>
  )
}

export default Filter

Version data entries

359 entries across 359 versions & 1 rubygems

Version Path
playbook_ui-13.17.0.pre.alpha.nodealphaupgrade2157 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.18.0 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary2130 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.PLAY12002127 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.powercentrainplaybookpt22125 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary2107 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.PBNTR181stripedtable2103 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary2100 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.PBNTR184betaflaginmenuyml2085 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.PBNTR178AdvancedTableDocs2072 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.17.0 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary2060 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary2038 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary2037 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.nodejsupgrade2036 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.PBNTR177NewAdvancedTableKit2035 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.PBNTR177NewAdvancedTableKit2034 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.PBNTR177NewAdvancedTableKit2023 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.PBNTR177NewAdvancedTableKit2010 app/pb_kits/playbook/pb_filter/Filter/index.tsx
playbook_ui-13.16.0.pre.alpha.PLAY11642006 app/pb_kits/playbook/pb_filter/Filter/index.tsx