🎉 first commit

This commit is contained in:
LIlGG
2025-09-24 13:06:25 +08:00
commit 1f4fb103e9
409 changed files with 61222 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { atom } from 'nanostores';
import type { UPageMessageMetadata } from '~/types/message';
export type SendChatMessageParams = {
messageContent: string;
files: File[];
metadata?: UPageMessageMetadata;
};
export type SendChatMessageFunction = (params: SendChatMessageParams) => Promise<void>;
export const sendChatMessageStore = atom<SendChatMessageFunction | null>(null);
export function setSendChatMessage(fn: SendChatMessageFunction) {
sendChatMessageStore.set(fn);
}