mhsf-dev/src/config/banner.tsx

24 lines
647 B
TypeScript
Raw Normal View History

2024-09-06 20:31:22 -05:00
import { Button } from "@/components/ui/button";
import Link from "next/link";
2024-07-23 18:49:21 -05:00
/** used when there is a outage */
export const banner = {
2024-09-06 20:31:22 -05:00
isBanner:
process.env.NEXT_PUBLIC_VERCEL_ENV !== "production"
? true
: /** Set this to true when outage --->*/ false,
bannerText:
process.env.NEXT_PUBLIC_VERCEL_ENV !== "production" ? (
<>
Your not in production!{" "}
<Link href="https://list.mlnehut.com">
<Button variant="link" className="dark:text-black">
Go to production
</Button>
</Link>
</>
) : (
<>{/** Set this to an explanation! */}</>
),
2024-07-23 18:49:21 -05:00
};