import React, { useState } from 'react' import { Dropdown, User, Badge, FlexItem, Avatar } from 'playbook-ui' const DropdownWithAutocompleteAndCustomDisplay = (props) => { const [selectedOption, setSelectedOption] = useState(); const options = [ { label: "Jasper Furniss", value: "Jasper Furniss", territory: "PHL", title: "Senior UX Engineer", id: "jasper-furniss", status: "Offline" }, { label: "Ramon Ruiz", value: "Ramon Ruiz", territory: "PHL", title: "Senior UX Designer", id: "ramon-ruiz", status: "Away" }, { label: "Jason Cypret", value: "Jason Cypret", territory: "PHL", title: "VP of User Experience", id: "jason-cypret", status: "Online" }, { label: "Courtney Long", value: "Courtney Long", territory: "PHL", title: "UX Design Mentor", id: "courtney-long", status: "Online" } ]; const CustomDisplay = () => { return ( <> { selectedOption && ( ) } ) }; return (
setSelectedOption(selectedItem)} options={options} {...props} > } /> {options.map((option) => ( <> ))}
) } export default DropdownWithAutocompleteAndCustomDisplay