7 lines
146 B
TypeScript
7 lines
146 B
TypeScript
|
|
import { createCookie } from 'react-router';
|
||
|
|
|
||
|
|
export const langCookie = createCookie('lang', {
|
||
|
|
path: '/',
|
||
|
|
maxAge: 60 * 60 * 24 * 365 * 2,
|
||
|
|
});
|