webamp/js/components/MediaLibraryWindow/LibraryButton.tsx
Jordan Eldredge b056b252d9 Revert "Rm media library (#957)"
This reverts commit d24b86e189.
2019-12-06 08:09:34 -08:00

16 lines
544 B
TypeScript

import React from "react";
type Props = React.HTMLAttributes<HTMLDivElement>;
// TODO: This should be a `<button>` but I couldn't figure out how to style it with css grid
const LibraryButton = (props: Props) => {
const { children, ...passThroughProps } = props;
return (
<div className="library-button" {...passThroughProps}>
<span className="library-button-left" />
<span className="library-button-center">{children}</span>
<span className="library-button-right" />
</div>
);
};
export default LibraryButton;