фронт

This commit is contained in:
test 2025-06-09 10:31:14 +05:00
parent eb1f18f53e
commit d67ea17fd7
160 changed files with 2611 additions and 5680 deletions

View file

@ -1,20 +0,0 @@
import {create} from 'zustand'
import { persist, createJSONStorage } from 'zustand/middleware'
interface IpAddressState {
ipAddress: string;
setIpAddress: (newIp: string) => void;
}
export const useIpStore = create<IpAddressState>()(
persist(
(set)=>({
ipAddress: 'localhost',
setIpAddress: (newIp: string) => set({ ipAddress: newIp }),
}),
{
name: 'currentIp-storage',
storage: createJSONStorage(()=>localStorage)
}
)
)