import { siteConfig } from '@/config/site'
import { Logo as DreikoenigeLogo } from '../../../sites/dreikoenige/Logo'
import { Logo as ChemnitzLogo } from '../../../sites/chemnitz/Logo'

export type LogoProps = {
  withText?: boolean
  color?: string
  textColor?: string
  height?: number
}

const logos: Record<string, React.ComponentType<LogoProps>> = {
  dreikoenige: DreikoenigeLogo,
  chemnitz: ChemnitzLogo,
}

export const Logo = (props: LogoProps) => {
  const SiteLogo = logos[siteConfig.id]
  return <SiteLogo {...props} />
}

export default Logo
