diff --git a/src/components/Buttons/IconPatch.tsx b/src/components/Buttons/IconPatch.tsx new file mode 100644 index 00000000..67f18106 --- /dev/null +++ b/src/components/Buttons/IconPatch.tsx @@ -0,0 +1,25 @@ +import { Icon, Icons } from "components/Icon"; + +export interface IconPatchProps { + active?: boolean; + onClick?: () => void; + clickable?: boolean; + className?: string; + icon: Icons; +} + +export function IconPatch(props: IconPatchProps) { + return ( +
- {props.fails}/{props.total} providers failed -
++ {props.fails}/{props.total} providers failed +
+ ) : null} + {props.resultsSize > 0 ? ( +That's all we have — sorry
+ ) : ( +We couldn't find anything — sorry
+ )} +All providers failed — whoops
+Thats all we have to show
- ) : ( -No results to show
- )}All scrapers failed
: null} + {error ?