export const ROUTES = {
    HOME: "/",
    ABOUT: "/ve-chung-toi",
    PRICING: "/bang-gia",
    REFUND_POLICY: "/chinh-sach-hoan-tien",
    BLOG: "/goc-kien-thuc",
    CONTACT: "/lien-he",
    BLOG_DETAIL: (slug: string) => `/goc-kien-thuc/${slug}`,

    SECTIONS: {
        HERO: "#hero",
        ABOUT: "#about",
        SERVICE: "#service",
        VIDEO: "#video",
        PRICING: "#pricing",
        BLOG: "#blog",
        CONTACT: "#contact",
    },
} as const;

export const getFullUrl = (path: string): string => {
    const domain = process.env.NEXT_PUBLIC_DOMAIN || "http://localhost:3000";
    return `${domain}${path}`;
};

export const isActiveRoute = (currentPath: string, route: string): boolean => {
    if (route === ROUTES.HOME) {
        return currentPath === route;
    }
    return currentPath.startsWith(route);
};