mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-10-24 03:29:23 +02:00
27 lines
595 B
PHP
27 lines
595 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Filament\Components\Infolist;
|
|
|
|
use Filament\Infolists\Components\TextEntry as ComponentsTextEntry;
|
|
|
|
/**
|
|
* Class TextEntry.
|
|
*/
|
|
class TextEntry extends ComponentsTextEntry
|
|
{
|
|
/**
|
|
* Make the entry copyable.
|
|
*
|
|
* @param bool $condition
|
|
* @return static
|
|
*/
|
|
public function copyableWithMessage(bool $condition = true): static
|
|
{
|
|
return $this
|
|
->copyable($condition)
|
|
->copyMessage(__('filament.actions.base.copied'))
|
|
->icon(__('filament-icons.actions.base.copied'));
|
|
}
|
|
} |