/// A button. In the text version it is its label and its address.
import type { Color } from "std/color"
import { isSafeUrl } from "../template"
prop url: string
prop label: string
prop color: Color = "#111111"
prop textColor: Color = "#ffffff"
---
@if isSafeUrl(url) {
{label}
} @else {
{label}
}