packageDocumentation module import * as React from "react" ; import * as ReactDOM from "react-dom" ; import { Orientation } from "@itwin/core-react" ; import { PropertyData } from "../propertygrid/PropertyDataProvider" ; import { FavoritePropertyList } from "./FavoritePropertyList" ; public export class FavoritePropertiesRenderer { public hasFavorites ( propertyData ) { return propertyData . records . Favorite !== undefined ; } public renderFavorites ( propertyData , orientation ? ) { const div = document . createElement ( "div" ) ; ReactDOM . render ( React . createElement ( FavoritePropertyList , { propertyData , orientation } , null ) , div ) ; return div ; } }