www/src/components/BackButton.astro
Shintaro Jokagi b91fe93229
chore(icons): replace Lucide icons with custom icon components
The changes show migration from Lucide to custom icon components. The change touches multiple components and includes adding new icon files.
2025-05-15 22:35:26 +12:00

20 lines
358 B
Text

---
import ArrowLeftIcon from '~/icons/ArrowLeftIcon.astro'
import { getLocale, getUI } from '~/utils/i18n'
const locale = getLocale(Astro)
const {
routes: {
mods: { slug },
},
} = getUI(locale)
---
<button
onclick="window.history.back()"
class="mb-8 flex w-min items-center gap-2"
>
<ArrowLeftIcon class="size-4" />
{slug.back}
</button>