<?php

namespace App\View\Components;

use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
use App\Models\Client\Client;

class WipSummaryCard extends Component
{
    public int $units;
    public int $seconds;
    public ?Client $client;

    public function __construct(
        int $units = 0,
        int $seconds = 0,
        ?Client $client = null
    ) {
        $this->units = $units;
        $this->seconds = $seconds;
        $this->client = $client;
    }

    public function render(): View|Closure|string
    {
        return view('components.wip-summary-card');
    }
}