mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 06:56:59 +00:00
13 lines
337 B
TypeScript
13 lines
337 B
TypeScript
import { SYLIUS_CUSTOMER_ROUTE } from '../../const'
|
|
|
|
export const getCustomerRoute = () =>
|
|
localStorage.getItem(SYLIUS_CUSTOMER_ROUTE)
|
|
|
|
export const setCustomerRoute = (route: string | null) => {
|
|
if (!route) {
|
|
localStorage.removeItem(SYLIUS_CUSTOMER_ROUTE)
|
|
} else {
|
|
localStorage.setItem(SYLIUS_CUSTOMER_ROUTE, route)
|
|
}
|
|
}
|