import { components, OptionProps } from "react-select"; import { faCheckCircle } from "@fortawesome/free-regular-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; export const RoleOption = ({ isSelected, children, ...props }: OptionProps<{ name: string; slug: string; description?: string | undefined }>) => { return (

{children}

{props.data.description ? (

{props.data.description}

) : (

No Description

)}
{isSelected && ( )}
); };