mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
refactor: migrate to props and runes
this was done using sv migrate and a bit of ai to fully migrate
This commit is contained in:
@@ -3,9 +3,13 @@
|
||||
import { onMount } from 'svelte';
|
||||
import Paste from '$lib/components/Paste.svelte';
|
||||
|
||||
export let data: PageData;
|
||||
interface Props {
|
||||
data: PageData;
|
||||
}
|
||||
|
||||
let now = new Date();
|
||||
let { data }: Props = $props();
|
||||
|
||||
let now = $state(new Date());
|
||||
|
||||
onMount(() => {
|
||||
const interval = setInterval(() => {
|
||||
|
||||
Reference in New Issue
Block a user