Files
Homarr/src/components/layout/HeaderConfig.tsx

15 lines
352 B
TypeScript
Raw Normal View History

2022-06-07 00:07:56 +00:00
import React from 'react';
import Head from 'next/head';
import { useConfig } from '../../tools/state';
export function HeaderConfig(props: any) {
const { config } = useConfig();
return (
<Head>
<title>{config.title ?? "Homarr 🦞"}</title>
<link rel="shortcut icon" href={config.favicon ?? "/favicon.svg"} />
</Head>
);
}