use crate::prelude::*;
use biome_js_syntax::AnyJsxAttribute;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatAnyJsxAttribute;
impl FormatRule<AnyJsxAttribute> for FormatAnyJsxAttribute {
type Context = JsFormatContext;
fn fmt(&self, node: &AnyJsxAttribute, f: &mut JsFormatter) -> FormatResult<()> {
match node {
AnyJsxAttribute::JsxAttribute(node) => node.format().fmt(f),
AnyJsxAttribute::JsxSpreadAttribute(node) => node.format().fmt(f),
}
}
}