'use client'; import styles from './layout.module.css'; import HomeSidebar from '@/app/home/components/home-sidebar/HomeSidebar'; import HomeTitleBar from '@/app/home/components/home-titlebar/HomeTitleBar'; import React, { useState } from 'react'; import { SidebarChildVO } from '@/app/home/components/home-sidebar/HomeSidebarChild'; import { I18nObject } from '@/app/infra/entities/common'; export default function HomeLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { const [title, setTitle] = useState(''); const [subtitle, setSubtitle] = useState(''); const [helpLink, setHelpLink] = useState({ en_US: '', zh_Hans: '', }); const onSelectedChangeAction = (child: SidebarChildVO) => { setTitle(child.name); setSubtitle(child.description); setHelpLink(child.helpLink); }; return (
{children}
); }