;
-
-// const deps = createEvoluDeps();
-
-// // runMain pro browser, tak jako tak
-// // const run = runMain vypada nice
-// // RunMain type, jo
-// // vsechny error do konzole, a poslouchat konzoli?
-// // SharedWorker jedna instance nebo vic?
-// // imho factory, a kazda evolu instance vlastni
-// // hot reload, pres deps Instances
-// // budu to cele stavet od zhora
-// // bude createEvoluDeps Task? neni duvod
-
-// // Create Evolu instance for the React web platform.
-// const evolu = Evolu.createEvolu(deps)(Schema, {
-// name: Evolu.SimpleName.orThrow("minimal-example"),
-
-// // TODO: Patri do web deps only? hmm, deps jsou sdilene
-// // tohle musim pak domyslet, callback? webReloadUrl? uvidime
-// // tohle rozhodne patri se
-// // reloadUrl: "/playgrounds/minimal",
-
-// ...(process.env.NODE_ENV === "development" && {
-// transports: [{ type: "WebSocket", url: "ws://localhost:4000" }],
-// }),
-// });
-
-// // Creates a typed React Hook for accessing Evolu from EvoluProvider context.
-// // You can also use `evolu` directly, but the hook enables replacing Evolu
-// // in tests via the EvoluProvider.
-// const useEvolu = createUseEvolu(evolu);
-
-// /**
-// * Subscribe to Evolu errors (database, network, sync issues). These should not
-// * happen in normal operation, so log them for debugging. Show users a friendly
-// * error message instead of technical details.
-// */
-// evolu.subscribeError(() => {
-// const error = evolu.getError();
-// if (!error) return;
-
-// alert("🚨 Evolu error occurred! Check the console.");
-// // eslint-disable-next-line no-console
-// console.error(error);
-// });
-
-// export const EvoluMinimalExample: FC = () => (
-//
-//
-//
-//
-// Minimal Todo App
-//
-//
-
-//
-// {/*
-// Suspense delivers great UX (no loading flickers) and DX (no loading
-// states to manage). Highly recommended with Evolu.
-// */}
-//
-//
-//
-//
-//
-//
-//
-// );
-
-// // Extract the row type from the query for type-safe component props.
-// type TodosRow = typeof todosQuery.Row;
-
-// const Todos: FC = () => {
-// // useQuery returns live data - component re-renders when data changes.
-// const todos = useQuery(todosQuery);
-// const { insert } = useEvolu();
-// const [newTodoTitle, setNewTodoTitle] = useState("");
-
-// const addTodo = () => {
-// const result = insert(
-// "todo",
-// {
-// title: newTodoTitle.trim(),
-// },
-// {
-// onComplete: () => {
-// setNewTodoTitle("");
-// },
-// },
-// );
-
-// if (!result.ok) {
-// alert(formatTypeError(result.error));
-// }
-// };
-
-// return (
-//
-// );
-// };
-
-// const Button: FC<{
-// title: string;
-// className?: string;
-// onClick: () => void;
-// variant?: "primary" | "secondary";
-// }> = ({ title, className, onClick, variant = "secondary" }) => {
-// const baseClasses =
-// "px-3 py-2 text-sm font-medium rounded-lg transition-colors";
-// const variantClasses =
-// variant === "primary"
-// ? "bg-blue-600 text-white hover:bg-blue-700"
-// : "bg-gray-100 text-gray-700 hover:bg-gray-200";
-
-// return (
-//
-// {title}
-//
-// );
-// };
-
-// /**
-// * Formats Evolu Type errors into user-friendly messages.
-// *
-// * Evolu Type typed errors ensure every error type used in schema must have a
-// * formatter. TypeScript enforces this at compile-time, preventing unhandled
-// * validation errors from reaching users.
-// *
-// * The `createFormatTypeError` function handles both built-in and custom errors,
-// * and lets us override default formatting for specific errors.
-// *
-// * Click on `createFormatTypeError` below to see how to write your own
-// * formatter.
-// */
-// const formatTypeError = Evolu.createFormatTypeError<
-// Evolu.MinLengthError | Evolu.MaxLengthError
-// >((error): string => {
-// switch (error.type) {
-// case "MinLength":
-// return `Text must be at least ${error.min} character${error.min === 1 ? "" : "s"} long`;
-// case "MaxLength":
-// return `Text is too long (maximum ${error.max} characters)`;
-// }
-// });
+/**
+ * Formats Evolu Type errors into user-friendly messages.
+ *
+ * Evolu Type typed errors ensure every error type used in schema must have a
+ * formatter. TypeScript enforces this at compile-time, preventing unhandled
+ * validation errors from reaching users.
+ *
+ * The `createFormatTypeError` function handles both built-in and custom errors,
+ * and lets us override default formatting for specific errors.
+ *
+ * Click on `createFormatTypeError` below to see how to write your own
+ * formatter.
+ */
+const formatTypeError = Evolu.createFormatTypeError<
+ Evolu.MinLengthError | Evolu.MaxLengthError
+>((error): string => {
+ switch (error.type) {
+ case "MinLength":
+ return `Text must be at least ${error.min} character${error.min === 1 ? "" : "s"} long`;
+ case "MaxLength":
+ return `Text is too long (maximum ${error.max} characters)`;
+ }
+});