refactor: replace const with let

This commit is contained in:
metamethods 2025-01-03 00:09:19 -08:00
parent ba15468eba
commit 090b541056

View File

@ -1,5 +1,5 @@
<script lang="ts">
const { date }: { date: Date } = $props();
let { date }: { date: Date } = $props();
let currentDate = $state(Date.now());
let difference = $derived(currentDate / 1000 - date.getTime() / 1000);