export const currentCollection = (pathname: string) => { const regMatch = pathname.match(/.*\/collectionType\/plugin::dutchie-plus\.(\w+)*/); if (regMatch) { return regMatch[1]; } else { return null; } }