UNPKG

state-management-utilities

Version:
12 lines (11 loc) 1.12 kB
import React from "react"; import { useHandlers } from "../providers/HandlersProvider"; import { clearLogs } from "../providers/LogsProvider"; import { useStyles } from "../providers/StylesProvider"; export function ClearLogs() { const userClear = useHandlers()?.onClear; const styles = useStyles(); return (React.createElement("svg", { viewBox: "0 0 1024 1024", version: "1.1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", className: styles["dashboard-icon"], onClick: userClear ?? clearLogs }, React.createElement("title", null, "Clear Logs"), React.createElement("path", { d: "M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6c-0.3 1.5-0.4 3-0.4 4.4 0 14.4 11.6 26 26 26h723c1.5 0 3-0.1 4.4-0.4 14.2-2.4 23.7-15.9 21.2-30zM204 390h272V182h72v208h272v104H204V390z m468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z" }))); }