Help to create a custom fields (comments)
Hi ! Is there someone here who could help me to create a custom fields list and add comments ? I followed the docs but can't make it work 


<?php
namespace App\Forms\Components;
use Filament\Forms\Components\Field;
use Modules\Comments\Comment;
class Comments extends Field
{
protected string $view = 'filament.forms.components.comments';
public $message;
public function addComment()
{
$comment = Comment::create([
'user_id' => auth()->user()->id,
'channel_id' => 1,
'message' => $this->message
])->save();
$this->message = '';
}
}<x-dynamic-component
:component="$getFieldWrapperView()"
:id="$getId()"
:label="$getLabel()"
:label-sr-only="$isLabelHidden()"
:helper-text="$getHelperText()"
:hint="$getHint()"
:hint-action="$getHintAction()"
:hint-color="$getHintColor()"
:hint-icon="$getHintIcon()"
:required="$isRequired()"
:state-path="$getStatePath()"
>
<div x-data="{ state: $wire.entangle('{{ $getStatePath() }}').defer }">
<!-- Interact with the `state` property in Alpine.js -->
<div class="flex">
<input id="message" type="text" name="message"
wire:model="message" wire:keydown.enter="addComment()"/>
<button wire:click="addComment()">Add</button>
</div>
</div>
</x-dynamic-component>