import React from "react"; import { FormattedMessage, FormattedNumber, useIntl } from "react-intl"; import * as GQL from "src/core/generated-graphql"; import { NavUtils, TextUtils, getStashboxBase } from "src/utils"; import { TextField, URLField } from "src/utils/field"; interface ISceneFileInfoPanelProps { scene: GQL.SceneDataFragment; } export const SceneFileInfoPanel: React.FC = ( props: ISceneFileInfoPanelProps ) => { const intl = useIntl(); function renderFileSize() { if (props.scene.file.size === undefined) { return; } const { size, unit } = TextUtils.fileSize( Number.parseInt(props.scene.file.size ?? "0", 10) ); return ( ); } function renderStashIDs() { if (!props.scene.stash_ids.length) { return; } return ( <>
StashIDs
); } function renderFunscript() { if (props.scene.interactive) { return ( ); } } function renderInteractiveSpeed() { if (props.scene.interactive_speed) { return ( ); } } return (
{renderFunscript()} {renderInteractiveSpeed()} {renderFileSize()} {renderStashIDs()}
); }; export default SceneFileInfoPanel;