From ef16890f38bd4256da1b873a89dfadc5067d63a9 Mon Sep 17 00:00:00 2001 From: winter Date: Tue, 24 Dec 2024 00:33:02 +0000 Subject: hook up the interaction buttons to a dummy thing --- templates/interaction_button.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 templates/interaction_button.php (limited to 'templates/interaction_button.php') diff --git a/templates/interaction_button.php b/templates/interaction_button.php new file mode 100644 index 0000000..a1fb3b0 --- /dev/null +++ b/templates/interaction_button.php @@ -0,0 +1,15 @@ + 'Like', + 'dislike' => 'Dislike', + 'reshare' => 'Reshare' +}; +$icon = match ($action) { + 'like' => 'favorite', + 'dislike' => 'heart_broken', + 'reshare' => $active ? 'repeat_on' : 'repeat' +}; +?> + \ No newline at end of file -- cgit v1.3