summaryrefslogtreecommitdiff
path: root/frontend/components/prism/CurrencyWarning.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/components/prism/CurrencyWarning.tsx')
-rw-r--r--frontend/components/prism/CurrencyWarning.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/frontend/components/prism/CurrencyWarning.tsx b/frontend/components/prism/CurrencyWarning.tsx
new file mode 100644
index 0000000..c4f9097
--- /dev/null
+++ b/frontend/components/prism/CurrencyWarning.tsx
@@ -0,0 +1,8 @@
+type Props = {
+ warning: string | null | undefined;
+};
+
+export function CurrencyWarning({ warning }: Props) {
+ if (!warning) return null;
+ return <span className="psm-currency-warning">{warning}</span>;
+}