// Icons from Lucide (https://lucide.dev), ISC License. // Copyright (c) Lucide Contributors 2022; portions (c) Cole Bemis 2013-2022 (Feather, MIT). /// Returns the inner SVG markup for a named icon. fn body(name: &str) -> &'static str { match name { "arrow-right" => r#""#, "book-marked" => { r#""# } "check" => r#""#, "chevron-down" => r#""#, "circle-alert" => { r#""# } "circle-check" => r#""#, "clock" => r#""#, "code" => r#""#, "copy" => { r#""# } "download" => { r#""# } "file-code" => { r#""# } "file-text" => { r#""# } "file" => { r#""# } "folder" => { r#""# } "git-branch" => { r#""# } "git-commit-horizontal" => { r#""# } "git-compare" => { r#""# } "git-merge" => { r#""# } "git-pull-request-closed" => { r#""# } "git-pull-request" => { r#""# } "globe" => { r#""# } "history" => { r#""# } "key-round" => { r#""# } "lock" => { r#""# } "log-out" => { r#""# } "message-square" => { r#""# } "plus" => r#""#, "search" => r#""#, "settings" => { r#""# } "tag" => { r#""# } "terminal" => { r#""# } "trash-2" => { r#""# } "user" => { r#""# } "users" => { r#""# } "x" => r#""#, _ => "", } } /// Renders a named icon as an inline SVG element. pub fn icon(name: &str) -> String { format!( r#""#, body(name) ) }