import React, { useState } from 'react' import { Dropdown, User, Flex, FlexItem, Badge, Avatar } from 'playbook-ui' const DropdownWithCustomDisplay = (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} > } placeholder="Select a User" /> {options.map((option) => ( ))}
) } export default DropdownWithCustomDisplay