2025-05-06 06:45:49 +00:00
|
|
|
import { cloneElement } from 'react'
|
|
|
|
|
import Container from '@/components/shared/Container'
|
|
|
|
|
import Card from '@/components/ui/Card'
|
|
|
|
|
import Logo from '@/components/template/Logo'
|
|
|
|
|
import type { ReactNode, ReactElement } from 'react'
|
|
|
|
|
import type { CommonProps } from '@/@types/common'
|
2025-05-30 08:33:33 +00:00
|
|
|
import { HiArrowLeft } from 'react-icons/hi'
|
2025-05-06 06:45:49 +00:00
|
|
|
|
|
|
|
|
interface SimpleProps extends CommonProps {
|
2025-05-30 08:33:33 +00:00
|
|
|
content?: ReactNode
|
2025-05-06 06:45:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const Simple = ({ children, content, ...rest }: SimpleProps) => {
|
2025-05-30 08:33:33 +00:00
|
|
|
return (
|
|
|
|
|
<div className="h-full">
|
|
|
|
|
<Container className="flex flex-col flex-auto items-center justify-center min-w-0 h-full">
|
|
|
|
|
<Card className="min-w-[320px] md:min-w-[450px]" bodyClass="md:p-10">
|
|
|
|
|
<a
|
2025-05-30 11:27:38 +00:00
|
|
|
href={import.meta.env.VITE_COMPANY_URL}
|
2025-05-30 08:33:33 +00:00
|
|
|
rel="noopener noreferrer"
|
|
|
|
|
className="top-0 right-0 text-gray-500 hover:text-gray-700"
|
|
|
|
|
>
|
|
|
|
|
<HiArrowLeft className="text-2xl" />
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<div className="text-center">
|
|
|
|
|
<Logo type="streamline" imgClass="mx-auto" />
|
|
|
|
|
</div>
|
|
|
|
|
<div className="text-center">
|
|
|
|
|
{content}
|
|
|
|
|
{children
|
|
|
|
|
? cloneElement(children as ReactElement, {
|
|
|
|
|
contentClassName: 'text-center',
|
|
|
|
|
...rest,
|
|
|
|
|
})
|
|
|
|
|
: null}
|
|
|
|
|
</div>
|
|
|
|
|
</Card>
|
|
|
|
|
</Container>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2025-05-06 06:45:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Simple
|