mirror of
https://github.com/stashapp/stash.git
synced 2025-12-14 12:25:23 +01:00
26 lines
720 B
TypeScript
26 lines
720 B
TypeScript
import { Card } from "react-bootstrap";
|
|
import React from "react";
|
|
import { Link } from "react-router-dom";
|
|
import * as GQL from "src/core/generated-graphql";
|
|
|
|
interface IProps {
|
|
studio: GQL.StudioDataFragment;
|
|
}
|
|
|
|
export const StudioCard: React.FC<IProps> = ({ studio }) => {
|
|
return (
|
|
<Card className="studio-card">
|
|
<Link to={`/studios/${studio.id}`} className="studio-card-header">
|
|
<img
|
|
className="studio-card-image"
|
|
alt={studio.name}
|
|
src={studio.image_path ?? ""}
|
|
/>
|
|
</Link>
|
|
<div className="card-section">
|
|
<h5 className="text-truncate">{studio.name}</h5>
|
|
<span>{studio.scene_count} scenes.</span>
|
|
</div>
|
|
</Card>
|
|
);
|
|
};
|