aboutsummaryrefslogtreecommitdiff
path: root/app/View/Components/LastFMTrack.php
diff options
context:
space:
mode:
authorRoscoeDeWah <roscoe@wah.moe>2025-01-16 13:42:14 +0000
committerRoscoeDeWah <roscoe@wah.moe>2025-01-16 13:42:14 +0000
commitda992ff1b780bf687ba2093d36c2def943296ec5 (patch)
tree28d4c656da316becfaf8ba81b7541d03abb188ae /app/View/Components/LastFMTrack.php
parenta349858a7d55e66b51b56063af5306d3a5652bb9 (diff)
Remove unused stuff
Diffstat (limited to 'app/View/Components/LastFMTrack.php')
-rw-r--r--app/View/Components/LastFMTrack.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/View/Components/LastFMTrack.php b/app/View/Components/LastFMTrack.php
new file mode 100644
index 0000000..737b5e3
--- /dev/null
+++ b/app/View/Components/LastFMTrack.php
@@ -0,0 +1,29 @@
+<?php
+
+namespace App\View\Components;
+
+use Closure;
+use Illuminate\Contracts\View\View;
+use Illuminate\View\Component;
+
+class LastFMTrack extends Component
+{
+ public $track;
+ public $count;
+ /**
+ * Create a new component instance.
+ */
+ public function __construct($track, $count)
+ {
+ $this->track = $track;
+ $this->count = $count;
+ }
+
+ /**
+ * Get the view / contents that represent the component.
+ */
+ public function render(): View|Closure|string
+ {
+ return view('components.lastfm-track');
+ }
+}