const CONTAINER_POSTFIX = "-con";

export const isContainerId = (rawId: string) => rawId.endsWith(CONTAINER_POSTFIX);

export const getContainerId = (rawId: string) =>
    Number(rawId.replace(CONTAINER_POSTFIX, ""));

export const getDndContainerId = (id: number) =>
    `${id}${CONTAINER_POSTFIX}`;
