+
+ value === searchRequest.type)}
+ onChange={(values) => onFilterChange(values[0] as ItemType)}
+ isEditable
+ />
+
+
+
+
+
+ )
+}
+
+export default InventorySearch
diff --git a/src/inventory/view/ViewInventory.tsx b/src/inventory/view/ViewInventory.tsx
new file mode 100644
index 0000000000..fb6c29a90a
--- /dev/null
+++ b/src/inventory/view/ViewInventory.tsx
@@ -0,0 +1,69 @@
+import { Button } from '@hospitalrun/components'
+import React, { useEffect, useCallback, useState } from 'react'
+import { useSelector } from 'react-redux'
+import { useHistory } from 'react-router-dom'
+
+import { useButtonToolbarSetter } from '../../page-header/button-toolbar/ButtonBarProvider'
+import { useUpdateTitle } from '../../page-header/title/TitleContext'
+import useTranslator from '../../shared/hooks/useTranslator'
+import Permissions from '../../shared/model/Permissions'
+import { RootState } from '../../shared/store'
+import InventorySearchRequest from '../model/InventorySearchRequest'
+import InventorySearch from './InventorySearch'
+import ViewInventoryTable from './ViewInventoryTable'
+
+const ViewInventory = () => {
+ const { t } = useTranslator()
+ const history = useHistory()
+ const setButtons = useButtonToolbarSetter()
+ const updateTitle = useUpdateTitle()
+ useEffect(() => {
+ updateTitle(t('inventory.items.label'))
+ })
+ const { permissions } = useSelector((state: RootState) => state.user)
+
+ const getButtons = useCallback(() => {
+ const buttons: React.ReactNode[] = []
+
+ if (permissions.includes(Permissions.AddItem)) {
+ buttons.push(
+