// sample legend import React from 'react'; interface LegendListInfoProps { legendType: string; // used for legend info texts, e.g., Collection Date, Collections dropdownTitle: string; legendInfoNumberText?: string; } export default function LegendListInfo(props: LegendListInfoProps) { // add tutorial image (for now) let legendListInfoImage: string = ''; if (props.legendType == 'categorical') { // for now, use image for categorical one legendListInfoImage = './img/legend-info-donut-capture.png'; return ( <>
Marker key
); } else { // using image comprised of chart marker and arrows. Relavent texts come from props legendListInfoImage = './img/legend-chart-arrow-new.png'; return ( <>
Marker key
marker is fully disaggregated
color by {props.dropdownTitle}
number of {props.legendInfoNumberText}
); } }