import { MpCookie } from '../../types/common' ; export const parseCookie = ( content ) : MpCookie => { const arr = content . split ( ';' ) ; const [ name , val ] = arr [ 0 ] . split ( '=' ) ; const res = { name , value : val || '' } ; return res ; } ;