Piano notes book, powered by Astro and React.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

18 rader
264 B

  1. import * as React from 'react';
  2. export interface ScoreProps {
  3. id: string;
  4. alt: string;
  5. }
  6. export const Score: React.FC<ScoreProps> = ({
  7. id,
  8. alt,
  9. }) => {
  10. return (
  11. <a href={`scores/${id}.musicxml`}>
  12. <img src={`scores/${id}.svg`} alt={alt} />
  13. </a>
  14. )
  15. };