feat: edit and resubmit messages (#592)

This commit is contained in:
Jeremy 2024-12-05 15:29:33 +03:00 committed by GitHub
parent 2e479ccce7
commit 64d1aad2bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 302 additions and 25 deletions

View file

@ -0,0 +1,10 @@
'use client';
import useSWR from 'swr';
export function useUserMessageId() {
const { data: userMessageIdFromServer, mutate: setUserMessageIdFromServer } =
useSWR('userMessageIdFromServer', null);
return { userMessageIdFromServer, setUserMessageIdFromServer };
}