UNPKG

@carbon/ibm-products

Version:

Carbon for IBM Products

25 lines (20 loc) 583 B
/** * Copyright IBM Corp. 2020, 2025 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { useState } from 'react'; // Copyright IBM Corp. 2022, 2022 // // This source code is licensed under the Apache-2.0 license found in the // LICENSE file in the root directory of this source tree. // const useParentSelect = () => { const [parentSelected, setParentSelected] = useState(null); return { parentSelected, setParentSelected }; }; export { useParentSelect as default };