svet-pos-project-client / src / pages / products / ProductWrapper.tsx
ProductWrapper.tsx
Raw
import React from 'react'
import MiniTab from '../../parts/mini-tab/MiniTab'
const arr = [
  {
    label: 'products',
    route:'/products/products'
  },
  {
    label: 'product-type',
    route:'/products/product-type'
  },
  {
    label: 'product-tag',
    route:'/products/product-tag'
  },
  {
    label: 'brand',
    route:'/products/brand'
  },
  {
    label: 'variant-attribute',
    route:'/products/attribute'
  },
  {
    label: 'barcode-labels',
    route:'/products/barcode'
  },
  {
    label: 'promotions',
    route:'/products/promotions'
  },
  {
    label: 'gift-card',
    route:'/products/gift-card'
  },

  
]
function ProductWrapper(props:any) {
  return (
    <div>
      <MiniTab tabComponents={arr}/>
      {props.children}
    </div>
  )
}


export default ProductWrapper