diff --git a/app/components/page-layout.tsx b/app/components/page-layout.tsx index 6e9f0f4..d58fa1b 100644 --- a/app/components/page-layout.tsx +++ b/app/components/page-layout.tsx @@ -1,7 +1,6 @@ -import { RadioIcon } from "@heroicons/react/24/solid"; +import { RadioIcon, UserCircleIcon } from "@heroicons/react/24/solid"; import { Link, NavLink } from "@remix-run/react"; -import type { RemixLinkProps } from "@remix-run/react/dist/components"; -import { RemixNavLinkProps } from "@remix-run/react/dist/components"; +import type { RemixLinkProps, RemixNavLinkProps } from "@remix-run/react/dist/components"; import type { ReactNode } from "react"; import * as React from "react"; import { createContext, useContext } from "react"; @@ -39,6 +38,26 @@ export function ListenNavLink(props: RemixNavLinkProps & React.RefAttributes{props.children}; } +export type ManageContentNavProps = { + user?: UserWithFavoriteStationsClientSide; +}; + +export function ManageContentNav({ user }: ManageContentNavProps) { + if (!user) { + return <>; + } + return ( + <> +
  • + Manage Content +
  • +
  • + Sources +
  • + + ); +} + export function PageLayout({ children, tags, user, station }: PageLayoutProps) { return ( @@ -64,12 +83,10 @@ export function PageLayout({ children, tags, user, station }: PageLayoutProps) { {user ?
    diff --git a/app/components/station-player.tsx b/app/components/station-player.tsx index d69834f..8f8b534 100644 --- a/app/components/station-player.tsx +++ b/app/components/station-player.tsx @@ -10,8 +10,7 @@ export function StationPlayer({ station }: StationPlayerProps) { } return (
    + className="fixed bottom-0 left-0 w-full h-[70px] px-4 py-2 z-50 flex justify-end content-center items-center gap-2 bg-accent text-accent-content">

    Now Playing: {station.name}