'use client';

import { SiteHeader } from '@/components/site-header';
import ProfileLayout from '@/components/profile/profile-layout';
import WithAuth from '@/components/providers/with-auth';
import { SystemPermission } from '@fenghuo/common/role';
import { useTranslation } from '@nice/i18n';
import { useSetPageInfo } from '@/components/providers/dashboard-provider';
export default function ProfilePage() {
	const { t } = useTranslation();
	useSetPageInfo({ title: t('profile.title'), subtitle: '整合人员数据，形成统一管理的数据池' })
	return (
		<WithAuth options={{
			orPermissions: [SystemPermission.PROFILE_LIST, SystemPermission.PROFILE_VIEW],
		}}>
			<div className="flex flex-col h-full">

				<div className="flex-1 overflow-hidden">
					<ProfileLayout />
				</div>
			</div>
		</WithAuth>
	);
}
