mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:46:29 +00:00
33 lines
1.2 KiB
TypeScript
33 lines
1.2 KiB
TypeScript
import { FC } from 'react';
|
|
import { Separator } from '@/components/ui/separator';
|
|
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
|
import FormComponent from './components/FormComponent';
|
|
|
|
type Props = {
|
|
searchParams: { [key: string]: string | string[] | undefined }
|
|
};
|
|
|
|
const PresencePage: FC<Props> = ({ searchParams: { checkout } }) => {
|
|
return (
|
|
<>
|
|
<div className='flex-1 lg:w-1/2 mx-auto px-5 py-10 md:p-10 pb-16'>
|
|
<Card>
|
|
<CardHeader>
|
|
<div>
|
|
<CardTitle className="text-lg font-medium">{checkout === 'true' ? 'Check-out Presence' : 'Check-in Presence'}</CardTitle>
|
|
<p className="text-sm text-muted-foreground">
|
|
This is how others will see you on the site.
|
|
</p>
|
|
</div>
|
|
</CardHeader>
|
|
<Separator className='w-10/12 xl:w-11/12 mx-auto' />
|
|
<CardContent className='mt-6'>
|
|
<FormComponent />
|
|
</CardContent>
|
|
</Card>
|
|
</div>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default PresencePage; |