import { cloneElement } from 'react' import Avatar from '@/components/ui/Avatar' import Logo from '@/components/template/Logo' import { APP_NAME } from '@/constants/app.constant' import type { CommonProps } from '@/@types/common' import { useLocalization } from '@/utils/hooks/useLocalization' interface SideProps extends CommonProps { content?: React.ReactNode } const Side = ({ children, content, ...rest }: SideProps) => { const { translate } = useLocalization() return (
Sedat ÖZTÜRK
{ translate('::LoginPanel.Profil')}

{ translate('::LoginPanel.Message')}

Copyright © {`${new Date().getFullYear()}`}{' '} {`${APP_NAME}`}{' '}
{content}
{children ? cloneElement(children as React.ReactElement, { ...rest, }) : null}
) } export default Side