export const intOrNull = (ref: string) => {
if (!ref) return null;
const parse = parseInt(ref, 10);
if (isNaN(parse)) return null;
return parse;
};