/** @jsxImportSource theme-ui */
import { Card, Paragraph, Heading } from '@theme-ui/components'
import { SourceData } from '../../lib/honkai3rd/sources'
import { useTranslation } from '../../lib/i18n'
interface SourceCardProps {
source: SourceData
}
const SourceCard = ({ source }: SourceCardProps) => {
const { t } = useTranslation()
switch (source.type) {
case 'spirit-weapon-foundry':
return (
{t('sources.sprit-weapon-foundry.label')}
{t('sources.sprit-weapon-foundry.description')}
)
case 'dorm-equipment-supply':
return (
{t('sources.dorm-equipment-supply.label')}
{t('sources.dorm-equipment-supply.description')}
)
case 'focused-supply':
return (
{t('sources.focused-supply.label')}
{t('sources.focused-supply.description')}
)
case 'pri-weapon-foundry':
return (
{t('sources.pri-weapon-foundry.label')}
{t('sources.pri-weapon-foundry.description')}
)
case 'weapon-exchange':
return (
{t('sources.weapon-exchange.label')}
{t('sources.weapon-exchange.description')}
)
case 'stigmata-exchange':
return (
{t('sources.stigmata-exchange.label')}
{t('sources.stigmata-exchange.description')}
)
case 'special-divine-key-supply':
return (
{t('sources.special-divine-key-supply.label')}
{t('sources.special-divine-key-supply.description')}
)
default:
return (
Unknown: {source.type}
)
}
}
export default SourceCard
const SourceCardConatiner: React.FC = ({ children }) => {
return (
{children}
)
}
const SourceCardHeading: React.FC = ({ children }) => {
return (
{children}
)
}
const SourceCardDescription: React.FC = ({ children }) => {
return {children}
}