Skip to content

Commit

Permalink
Add tax threshold monitoring component (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmochrie-stripe authored Jan 10, 2025
1 parent e330349 commit 6c5d02f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/Components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,31 @@ export const ConnectTaxSettings = ({
return wrapper;
};

export const ConnectTaxThresholdMonitoring = ({
onLoadError,
onLoaderStart,
displayCountries,
}: {
displayCountries?: string[];
} & CommonComponentProps): JSX.Element => {
const {wrapper, component: taxSettings} = useCreateComponent(
'tax-threshold-monitoring'
);

useUpdateWithSetter(taxSettings, onLoaderStart, (comp, val) => {
comp.setOnLoaderStart(val);
});
useUpdateWithSetter(taxSettings, onLoadError, (comp, val) => {
comp.setOnLoadError(val);
});

useUpdateWithSetter(taxSettings, displayCountries, (comp, val) => {
comp.setDisplayCountries(val);
});

return wrapper;
};

export const ConnectReportingChart = ({
reportName,
intervalStart,
Expand Down

0 comments on commit 6c5d02f

Please sign in to comment.