aboutsummaryrefslogtreecommitdiff
path: root/src/components/site-header.tsx
blob: f3e88510ec4b1fdc34d6449c999f42427975574c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import {Separator} from "@/components/ui/separator"
import {SidebarTrigger} from "@/components/ui/sidebar"
import React from "react";
import {useAppSelector} from "@/hooks.ts";
import {Offerwall} from "@/pages/Offerwall.tsx";

const SiteHeader = () => {
    const app = useAppSelector(state => state.app)

    return (
        <header
            className="group-has-data-[collapsible=icon]/sidebar-wrapper:h-12 flex h-12 shrink-0 items-center gap-2 border-b transition-[width,height] ease-linear">
            <div className="flex w-full items-center gap-1 px-4 lg:gap-2 lg:px-6">
                <SidebarTrigger/>

                <Separator
                    orientation="vertical"
                    className="mx-2 data-[orientation=vertical]:h-4"
                />
                <h1 className="text-base font-medium">
                    {app.currentPage === 'offerwall' && "Offerwall"}
                    {app.currentPage === 'questions' && "Profiling Questions"}
                    {app.currentPage === 'cashouts' && "Cashout Methods"}
                    {app.currentPage === 'demographics' && "User Demographics"}
                </h1>

            </div>
        </header>
    )
}

export {SiteHeader}