mirror of
https://github.com/harivansh-afk/Saas-Teamspace.git
synced 2026-04-17 06:04:56 +00:00
initial commit
This commit is contained in:
commit
ef9ccf22d3
133 changed files with 20802 additions and 0 deletions
42
components/auth/card-wrapper.tsx
Normal file
42
components/auth/card-wrapper.tsx
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
'use client'
|
||||
|
||||
import { Header } from '@/components/auth/header'
|
||||
import { Social } from '@/components/auth/social'
|
||||
import { BackButton } from '@/components/auth/back-button'
|
||||
import { Card, CardFooter, CardHeader } from '@/components/ui/card'
|
||||
|
||||
interface CardWrapperProps {
|
||||
children: React.ReactNode
|
||||
headerTitle: string
|
||||
backButtonLabel: string
|
||||
backButtonHref: string
|
||||
showSocial?: boolean
|
||||
}
|
||||
|
||||
export const CardWrapper = ({
|
||||
children,
|
||||
headerTitle,
|
||||
backButtonLabel,
|
||||
backButtonHref,
|
||||
showSocial
|
||||
}: CardWrapperProps) => {
|
||||
return (
|
||||
<Card className="mx-auto w-full max-w-sm bg-secondary/90 border border-foreground/5 rounded-lg px-7">
|
||||
<CardHeader>
|
||||
<Header title={headerTitle} />
|
||||
</CardHeader>
|
||||
|
||||
<div>{children}</div>
|
||||
|
||||
{showSocial && (
|
||||
<div>
|
||||
<Social />
|
||||
</div>
|
||||
)}
|
||||
|
||||
<CardFooter>
|
||||
<BackButton label={backButtonLabel} href={backButtonHref} />
|
||||
</CardFooter>
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue