const GROUP_POSTFIX = "-gr";

export const isGroupId = (rawId: string) => rawId.endsWith(GROUP_POSTFIX);

export const getGroupId = (rawId: string) =>
    Number(rawId.replace(GROUP_POSTFIX, ""));

export const getDndGroupId = (id: number) => `${id}${GROUP_POSTFIX}`;
