2026-02-27 12:44:57 +03:00
|
|
|
<!--
|
|
|
|
|
Component: SampleListSection
|
|
|
|
|
Wraps SampleList with a Section component
|
|
|
|
|
-->
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
import { handleTitleStatusChanged } from '$entities/Breadcrumb';
|
|
|
|
|
import type { ResponsiveManager } from '$shared/lib';
|
|
|
|
|
import { cn } from '$shared/shadcn/utils/shadcn-utils';
|
|
|
|
|
import { Section } from '$shared/ui';
|
|
|
|
|
import {
|
|
|
|
|
type Snippet,
|
|
|
|
|
getContext,
|
|
|
|
|
} from 'svelte';
|
2026-02-27 19:08:34 +03:00
|
|
|
import LayoutSwitch from '../LayoutSwitch/LayoutSwitch.svelte';
|
2026-02-27 12:44:57 +03:00
|
|
|
import SampleList from '../SampleList/SampleList.svelte';
|
|
|
|
|
|
|
|
|
|
const responsive = getContext<ResponsiveManager>('responsive');
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<Section
|
|
|
|
|
class="py-4 sm:py-10 md:py-12 gap-6 sm:gap-x-12 sm:gap-y-8"
|
|
|
|
|
index={3}
|
|
|
|
|
id="sample_set"
|
|
|
|
|
onTitleStatusChange={handleTitleStatusChanged}
|
|
|
|
|
title="Sample Set"
|
|
|
|
|
headerTitle="visual_output"
|
|
|
|
|
headerSubtitle="render_engine:"
|
|
|
|
|
>
|
2026-02-27 19:08:34 +03:00
|
|
|
{#snippet headerContent()}
|
|
|
|
|
<LayoutSwitch />
|
|
|
|
|
{/snippet}
|
|
|
|
|
|
2026-02-27 12:44:57 +03:00
|
|
|
{#snippet content({ className })}
|
|
|
|
|
<div class={cn(className, !responsive.isDesktopLarge && 'col-start-0 col-span-2')}>
|
|
|
|
|
<SampleList />
|
|
|
|
|
</div>
|
|
|
|
|
{/snippet}
|
|
|
|
|
</Section>
|