mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-19 23:20:13 +01:00
18 lines
519 B
TypeScript
18 lines
519 B
TypeScript
import { SettingsLicense as SharedSettingsLicense } from "@yaakapp-internal/ui";
|
|
import { useSettingsView } from "../../hooks/useSettingsView";
|
|
import { CargoFeature } from "../CargoFeature";
|
|
|
|
export function SettingsLicense() {
|
|
return (
|
|
<CargoFeature feature="license">
|
|
<SettingsLicenseCmp />
|
|
</CargoFeature>
|
|
);
|
|
}
|
|
|
|
function SettingsLicenseCmp() {
|
|
const bound = useSettingsView();
|
|
if (bound == null) return null;
|
|
return <SharedSettingsLicense view={bound.view} callbacks={bound.callbacks} />;
|
|
}
|