mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
✨ Ability to change title and icons
This commit is contained in:
14
src/components/layout/HeaderConfig.tsx
Normal file
14
src/components/layout/HeaderConfig.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user