import { IconButton, Text, Link } from "@chakra-ui/react" import { ExclamationCircleIcon, SparkleIcon } from "./ChakraIcons" import type React from "react" import { ToggleTip } from "../ToggleTip" import { LuSparkles } from "react-icons/lu" const playbackReportLink = Enhanced Playback Reporting export interface PlayBackReportingServerProps { playbackReporting: boolean } export const PlaybackReportingServer = (props: PlayBackReportingServerProps) => ( This Subsonic server {props.playbackReporting ? 'supports' : 'does not support'} {playbackReportLink}. }> {props.playbackReporting ? : } ); export interface PlayBackReportingPlayerProps { playbackReporting: boolean hasFields: boolean } export const PlaybackReportingPlayer = (props: PlayBackReportingPlayerProps) => { if (!props.playbackReporting) { return null; } let content: React.JSX.Element; if (props.playbackReporting && props.hasFields) { content = ( This Subsonic client is sending {playbackReportLink} fields. ); } else { content = ( This Subsonic client is not sending {playbackReportLink} fields. ); } return ( {props.playbackReporting && props.hasFields ? : } ) }