Files
sarlink-portal/components/agreement-card.tsx
i701 a60e9a9c85
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 12m20s
chore: add skeletons to tables and loading.tsx files for routes and run formatting ♻️
2025-09-20 20:42:14 +05:00

34 lines
808 B
TypeScript

import { EyeIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
Card,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card";
export function AgreementCard({ agreement }: { agreement: string }) {
return (
<Card className="w-full max-w-sm">
<CardHeader>
<CardTitle>Sarlink User Agreement</CardTitle>
<CardDescription>User agreement for Sarlink services.</CardDescription>
</CardHeader>
<CardFooter className="flex-col gap-2">
<a
target="_blank"
rel="noopener noreferrer"
className="w-full hover:cursor-pointer"
href={agreement}
>
<Button type="button" className="w-full hover:cursor-pointer">
<EyeIcon />
View Agreement
</Button>
</a>
</CardFooter>
</Card>
);
}