META-INF.resources.js.components.criteria_sidebar.CriteriaSidebar.js Maven / Gradle / Ivy
The newest version!
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
import PropTypes from 'prop-types';
import React, {useState} from 'react';
import {propertyGroupShape} from '../../utils/types.es';
import CriteriaSidebarCollapse from './CriteriaSidebarCollapse';
import CriteriaSidebarSearchBar from './CriteriaSidebarSearchBar';
export default function CriteriaSidebar({
onTitleClicked,
propertyGroups,
propertyKey,
}) {
const [searchValue, setSearchValue] = useState('');
return (
{Liferay.Language.get('properties')}
setSearchValue(value)}
searchValue={searchValue}
/>
);
}
CriteriaSidebar.propTypes = {
onTitleClicked: PropTypes.func,
propertyGroups: PropTypes.arrayOf(propertyGroupShape),
propertyKey: PropTypes.string,
};
© 2015 - 2024 Weber Informatics LLC | Privacy Policy