mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 09:21:13 -05:00
6 lines
240 B
JavaScript
6 lines
240 B
JavaScript
|
const { StaticUrlPrefix } = window.config;
|
||
|
|
||
|
export function svg(name, size) {
|
||
|
return `<svg class="svg ${name}" width="${size}" height="${size}" aria-hidden="true"><use xlink:href="${StaticUrlPrefix}/img/svg/icons.svg#${name}"/></svg>`;
|
||
|
}
|