export const getCookie = (name:string) => {
    const cookieString = document.cookie;
    const cookies = cookieString.split('; ').find(row => row.startsWith(name + '='));
    return cookies ? cookies.split('=')[1] : null;
};