mirror of
https://github.com/ManInDark/HabitTrove.git
synced 2026-01-20 22:24:28 +01:00
20 lines
393 B
TypeScript
20 lines
393 B
TypeScript
'use client'
|
|
|
|
import { ReactNode } from 'react'
|
|
import { useAtom } from 'jotai'
|
|
import { pomodoroAtom } from '@/lib/atoms'
|
|
import PomodoroTimer from './PomodoroTimer'
|
|
|
|
export default function ClientWrapper({ children }: { children: ReactNode }) {
|
|
const [pomo] = useAtom(pomodoroAtom)
|
|
|
|
return (
|
|
<>
|
|
{children}
|
|
{pomo.show && (
|
|
<PomodoroTimer />
|
|
)}
|
|
</>
|
|
)
|
|
}
|