import { IconPhoto } from "@tabler/icons-react"; import { TbSettings } from "react-icons/tb"; import { useBknd } from "ui/client/BkndProvider"; import { IconButton } from "ui/components/buttons/IconButton"; import { Empty } from "ui/components/display/Empty"; import { Link } from "ui/components/wouter/Link"; import { Media } from "ui/elements"; import { useBrowserTitle } from "ui/hooks/use-browser-title"; import * as AppShell from "ui/layouts/AppShell/AppShell"; import { useLocation } from "wouter"; export function MediaRoot({ children }) { const { app, config } = useBknd(); const [, navigate] = useLocation(); useBrowserTitle(["Media"]); if (!config.media.enabled) { return ( navigate(app.getSettingsPath(["media"])) }} /> ); } return ( <> } > Media
{/*
*/}
{children}
); } // @todo: add infinite load export function MediaEmpty() { useBrowserTitle(["Media"]); return (
); }