mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-13 02:26:36 +08:00
prettier
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
"use client"
|
||||
'use client';
|
||||
|
||||
import {usePublicConfig} from "@/hooks/use-public-config"
|
||||
import { usePublicConfig } from '@/hooks/use-public-config';
|
||||
|
||||
export function RobotsMeta() {
|
||||
const { config } = usePublicConfig()
|
||||
const { config } = usePublicConfig();
|
||||
|
||||
// Default to noindex, nofollow if config is loading or if it's explicitly disabled
|
||||
const enabled = config?.search_engine_indexing_enabled === "true"
|
||||
const enabled = config?.search_engine_indexing_enabled === 'true';
|
||||
|
||||
return (
|
||||
<meta
|
||||
name="robots"
|
||||
content={enabled ? "index, follow" : "noindex, nofollow"}
|
||||
name='robots'
|
||||
content={enabled ? 'index, follow' : 'noindex, nofollow'}
|
||||
/>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user