* Renaming index.scss files to index.module.scss * Changing `import from` to `import styles from`
16 lines
339 B
TypeScript
16 lines
339 B
TypeScript
import React from 'react'
|
|
import { useRouter } from 'next/router'
|
|
|
|
import styles from './index.module.scss'
|
|
|
|
interface Props {
|
|
labelType: string
|
|
}
|
|
|
|
const WeaponLabelIcon = (props: Props) => {
|
|
const router = useRouter()
|
|
|
|
return <i className={`WeaponLabelIcon ${props.labelType} ${router.locale}`} />
|
|
}
|
|
|
|
export default WeaponLabelIcon
|