import { useCallback, useMemo, useState } from 'react';
function compare(a, b) {
if (typeof a === 'number' && typeof b === 'number') return a - b;
return String(a ?? '').localeCompare(String(b ?? ''));
}
import { useState, useEffect, useCallback } from 'react';
export function useLocalStorage(key, initialValue) {
const readValue = useCallback(() => {
if (typeof window === 'undefined') return initialValue;
try {
from django.conf import settings
from django.db import models
from django.utils import timezone
class InvoiceQuerySet(models.QuerySet):
<?php
declare(strict_types=1);
namespace App\Security;
package upload
import (
"errors"
"io"
"log"
<?php
namespace App\Http\Requests\Wizard;
use Illuminate\Foundation\Http\FormRequest;
<?php
namespace App\Models;
use App\Support\TransientUrl;
use Illuminate\Database\Eloquent\Model;
import org.springframework.hateoas.RepresentationModel;
import java.math.BigDecimal;
public class ProductModel extends RepresentationModel<ProductModel> {
private final Long id;
package proxy
import (
"log"
"net"
"net/http"
use std::error::Error;
use std::fmt;
use std::io;
use std::num::ParseIntError;
#[derive(Debug)]
use crate::paginator::Paginator;
#[derive(Clone)]
pub struct Row {
pub cells: Vec<String>,
}
export interface DocState {
text: string;
selection: number;
}
export interface Command<S> {