mirror of
https://github.com/spliit-app/spliit.git
synced 2026-03-02 03:16:13 +01:00
19 lines
305 B
TypeScript
19 lines
305 B
TypeScript
'use client'
|
|
import {
|
|
RecentGroup,
|
|
saveRecentGroup,
|
|
} from '@/app/groups/recent-groups-helpers'
|
|
import { useEffect } from 'react'
|
|
|
|
type Props = {
|
|
group: RecentGroup
|
|
}
|
|
|
|
export function SaveGroupLocally({ group }: Props) {
|
|
useEffect(() => {
|
|
saveRecentGroup(group)
|
|
}, [group])
|
|
|
|
return null
|
|
}
|