21535: added timeouts to test spec Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa...
[arvados.git] / services / workbench2 / src / store / tree-picker / picker-id.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import React from "react";
6
7 export interface PickerIdProp {
8     pickerId: string;
9 }
10
11 export const pickerId =
12     (id: string) =>
13     <P extends PickerIdProp>(Component: React.ComponentType<P>) =>
14     (props: P) => {
15         return (
16             <Component
17                 {...props}
18                 pickerId={id}
19             />
20         );
21     };