aboutsummaryrefslogtreecommitdiff
path: root/app/View/Components/CurrentTrack.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/View/Components/CurrentTrack.php')
-rw-r--r--app/View/Components/CurrentTrack.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/View/Components/CurrentTrack.php b/app/View/Components/CurrentTrack.php
new file mode 100644
index 0000000..337809a
--- /dev/null
+++ b/app/View/Components/CurrentTrack.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace App\View\Components;
+
+use Closure;
+use Illuminate\Contracts\View\View;
+use Illuminate\View\Component;
+
+class CurrentTrack extends Component
+{
+ public $track;
+ /**
+ * Create a new component instance.
+ */
+ public function __construct($track)
+ {
+ $this->track = $track;
+ }
+
+ /**
+ * Get the view / contents that represent the component.
+ */
+ public function render(): View|Closure|string
+ {
+ return view('components.current-track');
+ }
+}