mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 16:16:50 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
13b3951a1e
commit
5ef5bab121
9 changed files with 512 additions and 0 deletions
20
src/components/mika/PaymentTestModeBanner.tsx
Normal file
20
src/components/mika/PaymentTestModeBanner.tsx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
const clientToken = import.meta.env.VITE_PAYMENTS_CLIENT_TOKEN as string | undefined;
|
||||
|
||||
export function PaymentTestModeBanner() {
|
||||
if (!clientToken?.startsWith("test_")) return null;
|
||||
|
||||
return (
|
||||
<div className="w-full bg-warning/15 border-b border-warning/30 px-4 py-2 text-center text-xs sm:text-sm text-warning-foreground">
|
||||
<span className="font-semibold text-warning">Modo de teste:</span>{" "}
|
||||
pagamentos no preview não cobram dinheiro real.{" "}
|
||||
<a
|
||||
href="https://docs.lovable.dev/features/payments#test-and-live-environments"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="underline font-medium text-warning"
|
||||
>
|
||||
Saiba mais
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue