diff --git a/app/components/chart-footnotes.tsx b/app/components/chart-footnotes.tsx index 4b65c81e7..d2df08c74 100644 --- a/app/components/chart-footnotes.tsx +++ b/app/components/chart-footnotes.tsx @@ -107,7 +107,9 @@ export const ChartFootnotes = ({ ) : null} ))} - {showVisualizeLink ? : null} + {showVisualizeLink ? ( + + ) : null} ); }; @@ -281,11 +283,12 @@ const ChartFootnotesComboLineSingle = ({ ) : null; }; -export const VisualizeLink = () => { +export const VisualizeLink = ({ createdWith }: { createdWith: ReactNode }) => { const locale = useLocale(); + return ( - Created with + {createdWith} - {state.chartConfigs.length !== 1 && } + {state.chartConfigs.length !== 1 && ( + + )} ) : ( <>